org.whattf.datatype.data
Class LanguageData

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

public class LanguageData
extends Object


Field Summary
private  String[] deprecated
           
private static String DEPRECATED
           
private  SortedSet<String> deprecatedSet
           
private static String[][] EMPTY_DOUBLE_STRING_ARRAY
           
private static String[] EMPTY_STRING_ARRAY
           
private  String[] grandfathered
           
private  SortedSet<String> grandfatheredSet
           
private static Pattern HYPHEN
           
private  BufferedReader in
           
private  String[] languages
           
private  SortedSet<String> languageSet
           
private static String PREFIX
           
private  String[][][] prefixesByVariant
           
private  Map<String,Set<String[]>> prefixesByVariantMap
           
private  String[] regions
           
private  SortedSet<String> regionSet
           
private  String[] scripts
           
private  SortedSet<String> scriptSet
           
private static String SUBTAG
           
private static String SUPPRESS_SCRIPT
           
private  int[] suppressedScriptByLanguage
           
private  Map<String,String> suppressedScriptByLanguageMap
           
private static String TAG
           
private static String TYPE
           
private  String[] variants
           
private  SortedSet<String> variantSet
           
 
Constructor Summary
LanguageData()
           
 
Method Summary
private  boolean consumeRecord()
           
private  void consumeRegistry()
           
 String[] getDeprecated()
          Returns the deprecated.
 String[] getGrandfathered()
          Returns the grandfathered.
 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

HYPHEN

private static final Pattern HYPHEN

EMPTY_DOUBLE_STRING_ARRAY

private static final String[][] EMPTY_DOUBLE_STRING_ARRAY

EMPTY_STRING_ARRAY

private static final String[] EMPTY_STRING_ARRAY

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

TAG

private static final String TAG
See Also:
Constant Field Values

TYPE

private static final String TYPE
See Also:
Constant Field Values

DEPRECATED

private static final String DEPRECATED
See Also:
Constant Field Values

in

private BufferedReader in

languageSet

private SortedSet<String> languageSet

scriptSet

private SortedSet<String> scriptSet

regionSet

private SortedSet<String> regionSet

variantSet

private SortedSet<String> variantSet

grandfatheredSet

private SortedSet<String> grandfatheredSet

deprecatedSet

private SortedSet<String> deprecatedSet

suppressedScriptByLanguageMap

private Map<String,String> suppressedScriptByLanguageMap

prefixesByVariantMap

private Map<String,Set<String[]>> prefixesByVariantMap

languages

private String[] languages

scripts

private String[] scripts

regions

private String[] regions

variants

private String[] variants

grandfathered

private String[] grandfathered

deprecated

private String[] deprecated

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

getDeprecated

public String[] getDeprecated()
Returns the deprecated.

Returns:
the deprecated

getGrandfathered

public String[] getGrandfathered()
Returns the grandfathered.

Returns:
the grandfathered