org.apache.james.mime4j.stream
Class RawField

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

public final class RawField
extends java.lang.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 Summary
RawField(java.lang.String name, java.lang.String body)
           
 
Method Summary
 java.lang.String getBody()
          Gets the unparsed and possibly encoded (see RFC 2047) field body string.
 int getDelimiterIdx()
           
 java.lang.String getName()
          Returns the name of the field.
 ByteSequence getRaw()
          Gets original (raw) representation of the field, if available, null otherwise.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawField

public RawField(java.lang.String name,
                java.lang.String body)
Method Detail

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 java.lang.String getName()
Description copied from interface: Field
Returns the name of the field.

Specified by:
getName in interface Field

getBody

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.