Class ContentLanguageParser
java.lang.Object
org.apache.james.mime4j.field.language.parser.ContentLanguageParser
- All Implemented Interfaces:
ContentLanguageParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.apache.james.mime4j.field.language.parser.ContentLanguageParserConstants
ALPHA, ALPHANUM, ANY, COMMENT, DEFAULT, DIGITS, DOT, EOF, INCOMMENT, INQUOTEDSTRING, NESTED_COMMENT, QUOTEDPAIR, QUOTEDSTRING, tokenImage, WS -
Constructor Summary
ConstructorsConstructorDescriptionContentLanguageParser(InputStream stream) Constructor with InputStream.ContentLanguageParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingContentLanguageParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDisable tracing.final voidEnable tracing.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final Stringlanguage()parse()Parses the input into a list of language tags.voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final booleanTrace enabled.
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
ContentLanguageParser
Constructor with InputStream. -
ContentLanguageParser
Constructor with InputStream and supplied encoding -
ContentLanguageParser
Constructor. -
ContentLanguageParser
Constructor with generated Token Manager.
-
-
Method Details
-
parse
Parses the input into a list of language tags.- Returns:
- list of language tag Strings
- Throws:
ParseException
-
language
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-