org.gudy.azureus2.core3.internat
Class LocaleUtil
java.lang.Object
org.gudy.azureus2.core3.internat.LocaleUtil
public class LocaleUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
generalCharsets
protected static final java.lang.String[] generalCharsets
getSingleton
public static LocaleUtil getSingleton()
getSystemEncoding
public java.lang.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 java.util.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 java.util.List getCandidatesAsList(byte[] array)
- Parameters:
array
-
- Returns:
- List of LocaleUtilDecoderCandidate