Class ContentLanguageFieldImpl
java.lang.Object
org.apache.james.mime4j.field.AbstractField
org.apache.james.mime4j.field.ContentLanguageFieldImpl
- All Implemented Interfaces:
ContentLanguageField, ParsedField, Field
Represents a
Content-Transfer-Encoding field.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ParseExceptionstatic final FieldParser<ContentLanguageField> Fields inherited from class AbstractField
monitor, rawField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the content language(s) defined in this field.Returns 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 ContentLanguageField
bodyDescriptionFieldMethods inherited from interface Field
getBody, getName, getNameLowerCase, getRawMethods inherited from interface ParsedField
isValidField
-
Field Details
-
parsed
private boolean parsed -
languages
-
parseException
-
PARSER
-
-
Constructor Details
-
ContentLanguageFieldImpl
ContentLanguageFieldImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Details
-
parse
private void parse() -
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:
-
getLanguages
Description copied from interface:ContentLanguageFieldGets the content language(s) defined in this field.- Specified by:
getLanguagesin interfaceContentLanguageField- Returns:
- a list of content language(s).
-