Package org.apache.james.mime4j.field
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 long
private boolean
static final FieldParser
<ContentLengthField> Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the content length value defined in this field.private void
parse()
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.dom.field.ContentLengthField
bodyDescriptionField
Methods inherited from interface org.apache.james.mime4j.stream.Field
getBody, getName, getNameLowerCase, getRaw
Methods inherited from interface org.apache.james.mime4j.dom.field.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:ContentLengthField
Gets the content length value defined in this field.- Specified by:
getContentLength
in interfaceContentLengthField
- Returns:
- the content length value.
-