Class Base64

  • All Implemented Interfaces:
    BinaryCodec

    public final class Base64
    extends BaseGeneric
    Base64 is a encoding that has an alphabet with 64 letters. As all ASCII Latin letters and digits together make 62 distinct characters this encoding requires some additional special ASCII characters (e.g. '+', '/', '-', or '_'). As typical text selection of operating systems triggered by double clicking only marks alpha-numerical words but stops at special characters a Base64 encoded representation is not as user-friendly. Also typical alphabets contain similar looking characters like 'O' and '0' or '1' and 'l'. However, still Base64 is a very common and especially efficient encoding.
    Since:
    1.0.0
    • Field Detail

      • DEFAULT

        public static final Base64 DEFAULT
        Default instance for Base64 according to RFC 4648 (Table 1).
      • URL

        public static final Base64 URL
        Instance for Base64 for usage in URLs according to RFC 4648 (Table 2).
    • Method Detail

      • isCaseSensitive

        public boolean isCaseSensitive()
        Overrides:
        isCaseSensitive in class BaseGeneric
        Returns:
        true if case-sensitive (e.g. both 'a' and 'A' are used with different meanings), false otherwise (the case of Latin Ascii letters will be ignored).