Package org.apache.james.mime4j.field
Class ContentLanguageFieldLenientImpl
- java.lang.Object
-
- org.apache.james.mime4j.field.AbstractField
-
- org.apache.james.mime4j.field.ContentLanguageFieldLenientImpl
-
- All Implemented Interfaces:
ContentLanguageField
,ParsedField
,Field
public class ContentLanguageFieldLenientImpl extends AbstractField implements ContentLanguageField
Represents aContent-Transfer-Encoding
field.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
COMMA
private static java.util.BitSet
DELIM
private java.util.List<java.lang.String>
languages
private boolean
parsed
static FieldParser<ContentLanguageField>
PARSER
-
Fields inherited from class org.apache.james.mime4j.field.AbstractField
monitor, rawField
-
-
Constructor Summary
Constructors Constructor Description ContentLanguageFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getLanguages()
Gets the content language(s) 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.ContentLanguageField
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 Detail
-
COMMA
private static final int COMMA
- See Also:
- Constant Field Values
-
DELIM
private static final java.util.BitSet DELIM
-
parsed
private boolean parsed
-
languages
private java.util.List<java.lang.String> languages
-
PARSER
public static final FieldParser<ContentLanguageField> PARSER
-
-
Constructor Detail
-
ContentLanguageFieldLenientImpl
ContentLanguageFieldLenientImpl(Field rawField, DecodeMonitor monitor)
-
-
Method Detail
-
parse
private void parse()
-
getLanguages
public java.util.List<java.lang.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).
-
-