Class MimeVersionFieldImpl
java.lang.Object
org.apache.james.mime4j.field.AbstractField
org.apache.james.mime4j.field.MimeVersionFieldImpl
- All Implemented Interfaces:
MimeVersionField, ParsedField, Field
Represents a
MIME-Version field.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate intprivate intprivate booleanprivate ParseExceptionstatic final FieldParser<MimeVersionField> Fields inherited from class AbstractField
monitor, rawField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintReturns the exception that was thrown by the field parser while parsing the field value.private voidparse()Methods inherited from class AbstractField
getBody, getName, getNameLowerCase, getRaw, getRawField, isValidField, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Field
getBody, getName, getNameLowerCase, getRawMethods inherited from interface MimeVersionField
bodyDescriptionFieldMethods inherited from interface ParsedField
isValidField
-
Field Details
-
DEFAULT_MINOR_VERSION
public static final int DEFAULT_MINOR_VERSION- See Also:
-
DEFAULT_MAJOR_VERSION
public static final int DEFAULT_MAJOR_VERSION- See Also:
-
parsed
private boolean parsed -
major
private int major -
minor
private int minor -
parsedException
-
PARSER
-
-
Constructor Details
-
MimeVersionFieldImpl
MimeVersionFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Details
-
parse
private void parse() -
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceMimeVersionField
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceMimeVersionField
-
getParseException
Description copied from interface:ParsedFieldReturns the exception that was thrown by the field parser while parsing the field value. The result isnullif the field is valid and no errors were encountered.- Specified by:
getParseExceptionin interfaceParsedField- Overrides:
getParseExceptionin classAbstractField- Returns:
- the exception that was thrown by the field parser or
nullif the field is valid. - See Also:
-