Class LocaleUtil

java.lang.Object
com.biglybt.core.internat.LocaleUtil

public class LocaleUtil extends Object
  • Field Details

    • systemEncoding

      private static final Charset systemEncoding
      Android note: The Android platform default is always UTF-8.
    • manual_charset

      private static final String[] manual_charset
    • generalCharsets

      protected static final Charset[] generalCharsets
    • singleton

      private static final LocaleUtil singleton
    • all_decoders

      private final LocaleUtilDecoder[] all_decoders
    • general_decoders

      private final LocaleUtilDecoder[] general_decoders
    • system_decoder

      private LocaleUtilDecoder system_decoder
    • fallback_decoder

      private final LocaleUtilDecoder fallback_decoder
  • Constructor Details

    • LocaleUtil

      private LocaleUtil()
  • Method Details

    • getSingleton

      public static LocaleUtil getSingleton()
    • getSystemEncoding

      public Charset getSystemEncoding()
    • getDecoders

      public LocaleUtilDecoder[] getDecoders()
    • getGeneralDecoders

      public LocaleUtilDecoder[] getGeneralDecoders()
    • getFallBackDecoder

      public LocaleUtilDecoder getFallBackDecoder()
    • getSystemDecoder

      public LocaleUtilDecoder getSystemDecoder()
    • getCandidates

      protected List<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. All candidates have getDecoder() non-null