Class ContentTypeParser
java.lang.Object
org.apache.james.mime4j.field.contenttype.parser.ContentTypeParser
- All Implemented Interfaces:
ContentTypeParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface org.apache.james.mime4j.field.contenttype.parser.ContentTypeParserConstants
ANY, ATOKEN, COMMENT, DEFAULT, DIGITS, EOF, INCOMMENT, INQUOTEDSTRING, NESTED_COMMENT, QUOTEDPAIR, QUOTEDSTRING, tokenImage, WS -
Constructor Summary
ConstructorsConstructorDescriptionContentTypeParser(InputStream stream) Constructor with InputStream.ContentTypeParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingContentTypeParser(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.getType()static voidfinal voidfinal voidparse()final voidparseAll()final voidvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final booleanTrace enabled.final Stringvalue()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
ContentTypeParser
Constructor with InputStream. -
ContentTypeParser
Constructor with InputStream and supplied encoding -
ContentTypeParser
Constructor. -
ContentTypeParser
Constructor with generated Token Manager.
-
-
Method Details
-
getType
-
getSubType
-
getParamNames
-
getParamValues
-
main
- Throws:
ParseException
-
parseLine
- Throws:
ParseException
-
parseAll
- Throws:
ParseException
-
parse
- Throws:
ParseException
-
parameter
- Throws:
ParseException
-
value
- 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.
-