l10n converter

com.sun.star.tooling.languageResolver
クラス LanguageResolver

java.lang.Object
  上位を拡張 com.sun.star.tooling.languageResolver.LanguageResolver

public class LanguageResolver
extends java.lang.Object

Translate language codes into another format between ISO, RFC3066 and numeric


入れ子のクラスの概要
 class LanguageResolver.LanguageResolvingException
          This Exception is thrown if a Language Identfier is unknown
 
コンストラクタの概要
LanguageResolver()
          Create a new Instance of LanguageResolver
 
メソッドの概要
 java.lang.String getISOfromNr(java.lang.String ID)
          Get the ISO Language Code corresponding with the given Language ID
 java.lang.String getISOFromRFC(java.lang.String RFC)
          Get the ISO Language Code corresponding with the given RFC3066 code
 java.lang.String getNrFromISO(java.lang.String isoCode)
          Get the numeric value of the given ISO Language Code
 java.lang.String getRFCFromISO(java.lang.String isoCode)
          Get the RFC3066 value of the given ISO Language Code
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LanguageResolver

public LanguageResolver()
                 throws java.io.IOException
Create a new Instance of LanguageResolver

例外:
java.io.IOException
メソッドの詳細

getISOfromNr

public java.lang.String getISOfromNr(java.lang.String ID)
                              throws LanguageResolver.LanguageResolvingException
Get the ISO Language Code corresponding with the given Language ID

パラメータ:
ID - the numeric language id to find
戻り値:
the ISO Language Code corresponding with the given Language ID
例外:
LanguageResolver.LanguageResolvingException - if the Language ID is not known

getISOFromRFC

public java.lang.String getISOFromRFC(java.lang.String RFC)
                               throws LanguageResolver.LanguageResolvingException
Get the ISO Language Code corresponding with the given RFC3066 code

パラメータ:
RFC - RFC3066 language id to find
戻り値:
the ISO Language Code corresponding with the given RFC3066 code
例外:
LanguageResolver.LanguageResolvingException - if the RFC3066 code is not known

getNrFromISO

public java.lang.String getNrFromISO(java.lang.String isoCode)
                              throws LanguageResolver.LanguageResolvingException
Get the numeric value of the given ISO Language Code

パラメータ:
isoCode - the ISO Language Code to find
戻り値:
numeric value of the given isoCode
例外:
LanguageResolver.LanguageResolvingException - if the Language ISO Code is not known

getRFCFromISO

public java.lang.String getRFCFromISO(java.lang.String isoCode)
                               throws LanguageResolver.LanguageResolvingException
Get the RFC3066 value of the given ISO Language Code

パラメータ:
isoCode - the ISO Language Code to find
戻り値:
RFC3066 value of the given isoCode
例外:
LanguageResolver.LanguageResolvingException - if the Language ISO Code is not known

l10n converter

Copyright © 2004 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA