org.gudy.azureus2.core3.internat
Class LocaleUtil

java.lang.Object
  extended by org.gudy.azureus2.core3.internat.LocaleUtil

public class LocaleUtil
extends Object


Field Summary
protected static String[] generalCharsets
           
 
Method Summary
protected  List getCandidateDecoders(byte[] array)
          Determine which decoders are candidates for handling the supplied type of string
protected  LocaleUtilDecoderCandidate[] getCandidates(byte[] array)
          Determine which locales are candidates for handling the supplied type of string
protected  List getCandidatesAsList(byte[] array)
           
 LocaleUtilDecoder[] getDecoders()
           
 LocaleUtilDecoder getFallBackDecoder()
           
 LocaleUtilDecoder[] getGeneralDecoders()
           
static LocaleUtil getSingleton()
           
 LocaleUtilDecoder getSystemDecoder()
           
 String getSystemEncoding()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generalCharsets

protected static final String[] generalCharsets
Method Detail

getSingleton

public static LocaleUtil getSingleton()

getSystemEncoding

public String getSystemEncoding()

getDecoders

public LocaleUtilDecoder[] getDecoders()

getGeneralDecoders

public LocaleUtilDecoder[] getGeneralDecoders()

getFallBackDecoder

public LocaleUtilDecoder getFallBackDecoder()

getSystemDecoder

public LocaleUtilDecoder getSystemDecoder()

getCandidates

protected LocaleUtilDecoderCandidate[] getCandidates(byte[] array)
Determine which locales are candidates for handling the supplied type of string

Parameters:
array - String in an byte array
Returns:
list of candidates. Valid candidates have getDecoder() non-null

getCandidateDecoders

protected List getCandidateDecoders(byte[] array)
Determine which decoders are candidates for handling the supplied type of string

Parameters:
array - String in a byte array
Returns:
list of possibly valid decoders. LocaleUtilDecoder

getCandidatesAsList

protected List getCandidatesAsList(byte[] array)
Parameters:
array -
Returns:
List of LocaleUtilDecoderCandidate