|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.field.AbstractField
public abstract class AbstractField
The base class of all field classes.
Field Summary | |
---|---|
protected DecodeMonitor |
monitor
|
protected Field |
rawField
|
Constructor Summary | |
---|---|
protected |
AbstractField(Field rawField,
DecodeMonitor monitor)
|
Method Summary | |
---|---|
java.lang.String |
getBody()
Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field body string. |
java.lang.String |
getName()
Gets the name of the field ( Subject ,
From , etc). |
ParseException |
getParseException()
Returns the exception that was thrown by the field parser while parsing the field value. |
ByteSequence |
getRaw()
Gets original (raw) representation of the field, if available, null otherwise. |
protected RawField |
getRawField()
|
boolean |
isValidField()
Returns true if this field is valid, i.e. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Field rawField
protected final DecodeMonitor monitor
Constructor Detail |
---|
protected AbstractField(Field rawField, DecodeMonitor monitor)
Method Detail |
---|
public java.lang.String getName()
Subject
,
From
, etc).
getName
in interface Field
public java.lang.String getBody()
getBody
in interface Field
public ByteSequence getRaw()
null
otherwise.
getRaw
in interface Field
public boolean isValidField()
ParsedField
true
if this field is valid, i.e. no errors were
encountered while parsing the field value.
isValidField
in interface ParsedField
true
if this field is valid, false
otherwise.ParsedField.isValidField()
public ParseException getParseException()
ParsedField
null
if the field is valid
and no errors were encountered.
getParseException
in interface ParsedField
null
if the field is valid.ParsedField.getParseException()
protected RawField getRawField()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |