org.whattf.datatype.data
Class LanguageData

java.lang.Object
  extended by org.whattf.datatype.data.LanguageData

public class LanguageData
extends Object


Nested Class Summary
private  class LanguageData.StringPair
           
 
Field Summary
private  BufferedReader in
           
private  String[] languages
           
private  SortedSet languageSet
           
private static String PREFIX
           
private  String[][] prefixesByVariant
           
private  String[] regions
           
private  SortedSet regionSet
           
private  String[] scripts
           
private  SortedSet scriptSet
           
private static String SUBTAG
           
private static String SUPPRESS_SCRIPT
           
private  int[] suppressedScriptByLanguage
           
private static String TYPE
           
private  String[] variants
           
private  SortedSet variantSet
           
 
Constructor Summary
LanguageData()
           
 
Method Summary
private  boolean consumeRecord()
           
private  void consumeRegistry()
           
 String[] getLanguages()
          Returns the languages.
 String[][] getPrefixesByVariant()
          Returns the prefixesByVariant.
 String[] getRegions()
          Returns the regions.
 String[] getScripts()
          Returns the scripts.
 int[] getSuppressedScriptByLanguage()
          Returns the suppressedScriptByLanguage.
 String[] getVariants()
          Returns the variants.
private  void prepareArrays()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

private static final String PREFIX
See Also:
Constant Field Values

SUPPRESS_SCRIPT

private static final String SUPPRESS_SCRIPT
See Also:
Constant Field Values

SUBTAG

private static final String SUBTAG
See Also:
Constant Field Values

TYPE

private static final String TYPE
See Also:
Constant Field Values

in

private BufferedReader in

languageSet

private SortedSet languageSet

scriptSet

private SortedSet scriptSet

regionSet

private SortedSet regionSet

variantSet

private SortedSet variantSet

languages

private String[] languages

scripts

private String[] scripts

regions

private String[] regions

variants

private String[] variants

suppressedScriptByLanguage

private int[] suppressedScriptByLanguage

prefixesByVariant

private String[][] prefixesByVariant
Constructor Detail

LanguageData

public LanguageData()
             throws IOException
Throws:
IOException
Method Detail

consumeRegistry

private void consumeRegistry()
                      throws IOException
Throws:
IOException

prepareArrays

private void prepareArrays()
                    throws IOException
Throws:
IOException

consumeRecord

private boolean consumeRecord()
                       throws IOException
Throws:
IOException

getLanguages

public String[] getLanguages()
Returns the languages.

Returns:
the languages

getPrefixesByVariant

public String[][] getPrefixesByVariant()
Returns the prefixesByVariant.

Returns:
the prefixesByVariant

getRegions

public String[] getRegions()
Returns the regions.

Returns:
the regions

getScripts

public String[] getScripts()
Returns the scripts.

Returns:
the scripts

getSuppressedScriptByLanguage

public int[] getSuppressedScriptByLanguage()
Returns the suppressedScriptByLanguage.

Returns:
the suppressedScriptByLanguage

getVariants

public String[] getVariants()
Returns the variants.

Returns:
the variants