Class ContentTypeParser
java.lang.Object
org.apache.james.mime4j.field.contenttype.parser.ContentTypeParser
- All Implemented Interfaces:
ContentTypeParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<int[]> private int[]
private int
(package private) SimpleCharStream
private int
private final int[]
private static int[]
Next token.private int
private String
Current token.Generated Token Manager.private boolean
private String
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 void
Disable tracing.final void
Enable tracing.Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.getType()
private Token
jj_consume_token
(int kind) private static void
private int
jj_ntk_f()
static void
final void
final void
parse()
final void
parseAll()
final void
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final boolean
Trace enabled.final String
value()
-
Field Details
-
type
-
subtype
-
paramNames
-
paramValues
-
token_source
Generated Token Manager. -
jj_input_stream
SimpleCharStream jj_input_stream -
token
Current token. -
jj_nt
Next token. -
jj_ntk
private int jj_ntk -
jj_gen
private int jj_gen -
jj_la1
private final int[] jj_la1 -
jj_la1_0
private static int[] jj_la1_0 -
jj_expentries
-
jj_expentry
private int[] jj_expentry -
jj_kind
private int jj_kind -
trace_enabled
private boolean trace_enabled
-
-
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
-
jj_la1_init_0
private static void jj_la1_init_0() -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
jj_consume_token
- Throws:
ParseException
-
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
jj_ntk_f
private int jj_ntk_f() -
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.
-