Package org.apache.james.mime4j.field
Class MimeVersionFieldLenientImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.MimeVersionFieldLenientImpl
-
- All Implemented Interfaces:
MimeVersionField,ParsedField,Field
public class MimeVersionFieldLenientImpl extends AbstractField implements MimeVersionField
Represents aMIME-Versionfield.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAJOR_VERSIONstatic intDEFAULT_MINOR_VERSIONprivate static java.util.BitSetDELIMprivate static intFULL_STOPprivate intmajorprivate intminorprivate booleanparsedstatic FieldParser<MimeVersionField>PARSER-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Constructor Description MimeVersionFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajorVersion()intgetMinorVersion()private voidparse()-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, getParseException, getRaw, getRawField, isValidField, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getNameLowerCase, getRaw
-
Methods inherited from interface org.apache.james.mime4j.dom.field.MimeVersionField
bodyDescriptionField
-
Methods inherited from interface org.apache.james.mime4j.dom.field.ParsedField
getParseException, isValidField
-
-
-
-
Field Detail
-
FULL_STOP
private static final int FULL_STOP
- See Also:
- Constant Field Values
-
DELIM
private static final java.util.BitSet DELIM
-
DEFAULT_MINOR_VERSION
public static final int DEFAULT_MINOR_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_MAJOR_VERSION
public static final int DEFAULT_MAJOR_VERSION
- See Also:
- Constant Field Values
-
parsed
private boolean parsed
-
major
private int major
-
minor
private int minor
-
PARSER
public static final FieldParser<MimeVersionField> PARSER
-
-
Constructor Detail
-
MimeVersionFieldLenientImpl
MimeVersionFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
parse
private void parse()
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceMimeVersionField
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceMimeVersionField
-
-