Package com.biglybt.core.internat
Class LocaleUtil
java.lang.Object
com.biglybt.core.internat.LocaleUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocaleUtilDecoder[]
private final LocaleUtilDecoder
private final LocaleUtilDecoder[]
protected static final Charset[]
private static final String[]
private static final LocaleUtil
private LocaleUtilDecoder
private static final Charset
Android note: The Android platform default is always UTF-8. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<LocaleUtilDecoderCandidate> getCandidates
(byte[] array) Determine which locales are candidates for handling the supplied type of stringstatic LocaleUtil
-
Field Details
-
systemEncoding
Android note: The Android platform default is always UTF-8. -
manual_charset
-
generalCharsets
-
singleton
-
all_decoders
-
general_decoders
-
system_decoder
-
fallback_decoder
-
-
Constructor Details
-
LocaleUtil
private LocaleUtil()
-
-
Method Details
-
getSingleton
-
getSystemEncoding
-
getDecoders
-
getGeneralDecoders
-
getFallBackDecoder
-
getSystemDecoder
-
getCandidates
Determine which locales are candidates for handling the supplied type of string- Parameters:
array
- String in an byte array- Returns:
- list of candidates. All candidates have getDecoder() non-null
-