org.apache.james.mime4j.field
Interface ParsedField

All Superinterfaces:
Field
All Known Implementing Classes:
AbstractField, AddressListField, ContentDispositionField, ContentTransferEncodingField, ContentTypeField, DateTimeField, MailboxField, MailboxListField, UnstructuredField

public interface ParsedField
extends Field


Method Summary
 ParseException getParseException()
          Returns the exception that was thrown by the field parser while parsing the field value.
 boolean isValidField()
          Returns true if this field is valid, i.e.
 
Methods inherited from interface org.apache.james.mime4j.parser.Field
getBody, getName, getRaw
 

Method Detail

isValidField

boolean isValidField()
Returns true if this field is valid, i.e. no errors were encountered while parsing the field value.

Returns:
true if this field is valid, false otherwise.
See Also:
getParseException()

getParseException

ParseException getParseException()
Returns the exception that was thrown by the field parser while parsing the field value. The result is null if the field is valid and no errors were encountered.

Returns:
the exception that was thrown by the field parser or null if the field is valid.


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