public class StructuredFieldParser extends Object implements StructuredFieldParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
StructuredFieldParserTokenManager |
token_source
Generated Token Manager.
|
ANY, CONTENT, DEFAULT, EOF, FOLD, INCOMMENT, INQUOTEDSTRING, NESTED_COMMENT, QUOTEDPAIR, QUOTEDSTRING, STRING_CONTENT, tokenImage, WS
Constructor and Description |
---|
StructuredFieldParser(InputStream stream)
Constructor with InputStream.
|
StructuredFieldParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
StructuredFieldParser(Reader stream)
Constructor.
|
StructuredFieldParser(StructuredFieldParserTokenManager tm)
Constructor with generated Token Manager.
|
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.
|
Token |
getToken(int index)
Get the specific Token.
|
boolean |
isFoldingPreserved()
Should the \r\n folding sequence be preserved?
|
String |
parse()
Unfolds the input and removes comments.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
ReInit(StructuredFieldParserTokenManager tm)
Reinitialise.
|
void |
setFoldingPreserved(boolean preserveFolding)
Sets whether the \r\n folding sequence should be preserved.
|
public StructuredFieldParserTokenManager token_source
public Token token
public Token jj_nt
public StructuredFieldParser(InputStream stream)
public StructuredFieldParser(InputStream stream, String encoding)
public StructuredFieldParser(Reader stream)
public StructuredFieldParser(StructuredFieldParserTokenManager tm)
public boolean isFoldingPreserved()
public void setFoldingPreserved(boolean preserveFolding)
public String parse() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(StructuredFieldParserTokenManager 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.