Class CharsetUTF7

All Implemented Interfaces:
Comparable<Charset>

class CharsetUTF7 extends CharsetICU
  • Field Details

    • IMAP_NAME

      private static final String IMAP_NAME
      See Also:
    • useIMAP

      private boolean useIMAP
    • fromUSubstitution

      protected byte[] fromUSubstitution
    • PLUS

      private static final byte PLUS
      See Also:
    • MINUS

      private static final byte MINUS
      See Also:
    • BACKSLASH

      private static final byte BACKSLASH
      See Also:
    • AMPERSAND

      private static final byte AMPERSAND
      See Also:
    • COMMA

      private static final byte COMMA
      See Also:
    • SLASH

      private static final byte SLASH
      See Also:
    • ENCODE_DIRECTLY_MAXIMUM

      private static final byte[] ENCODE_DIRECTLY_MAXIMUM
    • ENCODE_DIRECTLY_RESTRICTED

      private static final byte[] ENCODE_DIRECTLY_RESTRICTED
    • TO_BASE_64

      private static final byte[] TO_BASE_64
    • FROM_BASE_64

      private static final byte[] FROM_BASE_64
  • Constructor Details

    • CharsetUTF7

      public CharsetUTF7(String icuCanonicalName, String javaCanonicalName, String[] aliases)
  • Method Details

    • isCRLFTAB

      private static boolean isCRLFTAB(char c)
    • isLegal

      private static boolean isLegal(char c, boolean useIMAP)
    • inSetDIMAP

      private static boolean inSetDIMAP(char c)
    • TO_BASE64_IMAP

      private static byte TO_BASE64_IMAP(int n)
    • FROM_BASE64_IMAP

      private static byte FROM_BASE64_IMAP(char c)
    • newDecoder

      public CharsetDecoder newDecoder()
      Specified by:
      newDecoder in class Charset
    • newEncoder

      public CharsetEncoder newEncoder()
      Specified by:
      newEncoder in class Charset
    • getUnicodeSetImpl

      void getUnicodeSetImpl(UnicodeSet setFillIn, int which)
      Description copied from class: CharsetICU
      This follows ucnv.c method ucnv_detectUnicodeSignature() to detect the start of the stream for example U+FEFF (the Unicode BOM/signature character) that can be ignored. Detects Unicode signature byte sequences at the start of the byte stream and returns number of bytes of the BOM of the indicated Unicode charset. 0 is returned when no Unicode signature is recognized.
      Specified by:
      getUnicodeSetImpl in class CharsetICU