Package org.apache.james.mime4j.field
Class ContentLanguageFieldImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.ContentLanguageFieldImpl
-
- All Implemented Interfaces:
ContentLanguageField
,ParsedField
,Field
public class ContentLanguageFieldImpl extends AbstractField implements ContentLanguageField
Represents aContent-Transfer-Encoding
field.
-
-
Field Summary
Fields Modifier and Type Field Description static FieldParser<ContentLanguageField>
PARSER
-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getLanguages()
Gets the content language(s) defined in this field.ParseException
getParseException()
Returns the exception that was thrown by the field parser while parsing the field value.-
Methods inherited from class org.apache.james.mime4j.field.AbstractField
getBody, getName, getNameLowerCase, 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.ParsedField
isValidField
-
-
-
-
Field Detail
-
PARSER
public static final FieldParser<ContentLanguageField> PARSER
-
-
Method Detail
-
getParseException
public ParseException getParseException()
Description copied from interface:ParsedField
Returns the exception that was thrown by the field parser while parsing the field value. The result isnull
if the field is valid and no errors were encountered.- Specified by:
getParseException
in interfaceParsedField
- Overrides:
getParseException
in classAbstractField
- Returns:
- the exception that was thrown by the field parser or
null
if the field is valid. - See Also:
ParsedField.getParseException()
-
getLanguages
public List<String> getLanguages()
Description copied from interface:ContentLanguageField
Gets the content language(s) defined in this field.- Specified by:
getLanguages
in interfaceContentLanguageField
- Returns:
- a list of content language(s).
-
-