Package org.apache.james.mime4j.stream
Class RawField
java.lang.Object
org.apache.james.mime4j.stream.RawField
- All Implemented Interfaces:
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final int
private final String
private String
private final ByteSequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Gets the unparsed and possibly encoded (see RFC 2047) field body string.int
getName()
Returns the name of the field.Returns the name of the field in lower case.getRaw()
Gets original (raw) representation of the field, if available,null
otherwise.private static boolean
toString()
-
Field Details
-
raw
-
delimiterIdx
private final int delimiterIdx -
name
-
body
-
nameLowerCase
-
-
Constructor Details
-
RawField
RawField(ByteSequence raw, int delimiterIdx, String name, String body) -
RawField
-
-
Method Details
-
isSpace
-
getRaw
Description copied from interface:Field
Gets original (raw) representation of the field, if available,null
otherwise. -
getName
Description copied from interface:Field
Returns the name of the field. -
getNameLowerCase
Description copied from interface:Field
Returns the name of the field in lower case.- Specified by:
getNameLowerCase
in interfaceField
-
getBody
Description copied from interface:Field
Gets the unparsed and possibly encoded (see RFC 2047) field body string. -
getDelimiterIdx
public int getDelimiterIdx() -
toString
-