Class Encoding

  • All Implemented Interfaces:
    Serializable, Comparable<Parameter>, Encodable

    public class Encoding
    extends Parameter
    implements Encodable
    $Id$ [18-Apr-2004]

    Defines an Inline Encoding parameter. Constants are provided for all encodings specified in RFC2045.

      4.2.7 Inline Encoding
         Parameter Name: ENCODING
         Purpose: To specify an alternate inline encoding for the property
         Format Definition: The property parameter is defined by the following
           encodingparam      = "ENCODING" "="
              ; "8bit" text encoding is defined in [RFC 2045]
                              / "BASE64"
              ; "BASE64" binary encoding format is defined in [RFC 2045]
                              / iana-token
              ; Some other IANA registered iCalendar encoding type
                              / x-name)
              ; A non-standard, experimental encoding type
         Description: The property parameter identifies the inline encoding
         used in a property value. The default encoding is "8BIT",
         corresponding to a property value consisting of text. The "BASE64"
         encoding type corresponds to a property value encoded using the
         "BASE64" encoding defined in [RFC 2045].
         If the value type parameter is ";VALUE=BINARY", then the inline
         encoding parameter MUST be specified with the value
            <...remainder of "BASE64" encoded binary data...>
    See Also:
    Serialized Form
    • Field Detail

      • SEVEN_BIT

        public static final Encoding SEVEN_BIT
        7 bit encoding.
      • EIGHT_BIT

        public static final Encoding EIGHT_BIT
        8 bit encoding.
      • BINARY

        public static final Encoding BINARY
        Binary encoding.

        public static final Encoding QUOTED_PRINTABLE
        Quoted printable encoding.
      • BASE64

        public static final Encoding BASE64
        Base64 encoding.
    • Constructor Detail

      • Encoding

        public Encoding​(String aValue)
        aValue - a string representation of an Inline Encoding
    • Method Detail

      • getValue

        public final String getValue()
        Specified by:
        getValue in class Content
        the content value