Class RawField

java.lang.Object
org.apache.james.mime4j.stream.RawField
All Implemented Interfaces:
Field

public final class RawField extends Object implements Field

Raw (unstructured) MIME field. The field's body is unparsed and possibly encoded.

Instances of this class can be created by using RawFieldParser.parseField(ByteSequence) method.

  • Constructor Details

  • Method Details

    • getRaw

      public ByteSequence getRaw()
      Description copied from interface: Field
      Gets original (raw) representation of the field, if available, null otherwise.
      Specified by:
      getRaw in interface Field
    • getName

      public String getName()
      Description copied from interface: Field
      Returns the name of the field.
      Specified by:
      getName in interface Field
    • getNameLowerCase

      public String getNameLowerCase()
      Description copied from interface: Field
      Returns the name of the field in lower case.
      Specified by:
      getNameLowerCase in interface Field
    • getBody

      public String getBody()
      Description copied from interface: Field
      Gets the unparsed and possibly encoded (see RFC 2047) field body string.
      Specified by:
      getBody in interface Field
      Returns:
      the unparsed field body string.
    • getDelimiterIdx

      public int getDelimiterIdx()
    • toString

      public String toString()
      Overrides:
      toString in class Object