public class MimeVersionFieldImpl extends AbstractField implements MimeVersionField
MIME-Version field.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAJOR_VERSION |
static int |
DEFAULT_MINOR_VERSION |
private int |
major |
private int |
minor |
private boolean |
parsed |
private ParseException |
parsedException |
static FieldParser<MimeVersionField> |
PARSER |
monitor, rawField| Constructor and Description |
|---|
MimeVersionFieldImpl(Field rawField,
DecodeMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMajorVersion() |
int |
getMinorVersion() |
ParseException |
getParseException()
Returns the exception that was thrown by the field parser while parsing
the field value.
|
private void |
parse() |
getBody, getName, getRaw, getRawField, isValidField, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisValidFieldpublic static final int DEFAULT_MINOR_VERSION
public static final int DEFAULT_MAJOR_VERSION
private boolean parsed
private int major
private int minor
private ParseException parsedException
public static final FieldParser<MimeVersionField> PARSER
MimeVersionFieldImpl(Field rawField, DecodeMonitor monitor)
private void parse()
public int getMinorVersion()
getMinorVersion in interface MimeVersionFieldpublic int getMajorVersion()
getMajorVersion in interface MimeVersionFieldpublic ParseException getParseException()
ParsedFieldnull if the field is valid
and no errors were encountered.getParseException in interface ParsedFieldgetParseException in class AbstractFieldnull if the field is valid.ParsedField.getParseException()