public class ContentTypeParser extends Object implements ContentTypeParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
ContentTypeParserTokenManager |
token_source
Generated Token Manager.
|
ANY, ATOKEN, COMMENT, DEFAULT, DIGITS, EOF, INCOMMENT, INQUOTEDSTRING, NESTED_COMMENT, QUOTEDPAIR, QUOTEDSTRING, tokenImage, WS
Constructor and Description |
---|
ContentTypeParser(ContentTypeParserTokenManager tm)
Constructor with generated Token Manager.
|
ContentTypeParser(InputStream stream)
Constructor with InputStream.
|
ContentTypeParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
ContentTypeParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
List<String> |
getParamNames() |
List<String> |
getParamValues() |
String |
getSubType() |
Token |
getToken(int index)
Get the specific Token.
|
String |
getType() |
static void |
main(String[] args) |
void |
parameter() |
void |
parse() |
void |
parseAll() |
void |
parseLine() |
void |
ReInit(ContentTypeParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
String |
value() |
public ContentTypeParserTokenManager token_source
public Token token
public Token jj_nt
public ContentTypeParser(InputStream stream)
public ContentTypeParser(InputStream stream, String encoding)
public ContentTypeParser(Reader stream)
public ContentTypeParser(ContentTypeParserTokenManager tm)
public String getType()
public String getSubType()
public static void main(String[] args) throws ParseException
ParseException
public final void parseLine() throws ParseException
ParseException
public final void parseAll() throws ParseException
ParseException
public final void parse() throws ParseException
ParseException
public final void parameter() throws ParseException
ParseException
public final String value() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ContentTypeParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.