Class ContentLengthFieldImpl
java.lang.Object
org.apache.james.mime4j.field.AbstractField
org.apache.james.mime4j.field.ContentLengthFieldImpl
- All Implemented Interfaces:
ContentLengthField, ParsedField, Field
Represents a
Content-Length field.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate booleanstatic final FieldParser<ContentLengthField> Fields inherited from class AbstractField
monitor, rawField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the content length value defined in this field.private voidparse()Methods inherited from class AbstractField
getBody, getName, getNameLowerCase, getParseException, getRaw, getRawField, isValidField, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContentLengthField
bodyDescriptionFieldMethods inherited from interface Field
getBody, getName, getNameLowerCase, getRawMethods inherited from interface ParsedField
getParseException, isValidField
-
Field Details
-
parsed
private boolean parsed -
contentLength
private long contentLength -
PARSER
-
-
Constructor Details
-
ContentLengthFieldImpl
ContentLengthFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Details
-
parse
private void parse() -
getContentLength
public long getContentLength()Description copied from interface:ContentLengthFieldGets the content length value defined in this field.- Specified by:
getContentLengthin interfaceContentLengthField- Returns:
- the content length value.
-