public class OBOParser extends Object implements OBOParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
OBOParserTokenManager |
token_source
Generated Token Manager.
|
CLOSE_SQUARE_BRACKET, COMMENT, COMMENT_END, COMMENT_START, DEFAULT, EOF, ERROR, IN_COMMENT, IN_QUOTED_STRING, IN_STANZA_HEADER, IN_TAG_VALUE, IN_TAG_VALUE_PAIR, LINE_COMMENTED_OUT, OPEN_SQUARE_BRACKET, QUOTED_STRING, QUOTED_STRING_DBL_QUOTE_TERMINATOR, QUOTED_STRING_NEW_LINE_TERMINATOR, QUOTED_STRING_START, STANZA_TYPE, STRING, TAG_COLON, TAG_END, TAG_NAME, TAG_VALUE_WS, tokenImage| Constructor and Description |
|---|
OBOParser(InputStream stream)
Constructor with InputStream.
|
OBOParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding.
|
OBOParser(OBOParserTokenManager tm)
Constructor with generated Token Manager.
|
OBOParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Comment()
Comment.
|
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.
|
void |
Header()
Header.
|
void |
parse()
Parses the.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(OBOParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
setHandler(OBOParserHandler handler)
Sets the handler.
|
void |
Stanza()
Stanza.
|
void |
TagValuePair()
Tag value pair.
|
public OBOParserTokenManager token_source
public Token token
public Token jj_nt
public OBOParser(InputStream stream)
stream - the streampublic OBOParser(InputStream stream, String encoding)
stream - the streamencoding - the encodingpublic OBOParser(Reader stream)
stream - the streampublic OBOParser(OBOParserTokenManager tm)
tm - the tmpublic void setHandler(OBOParserHandler handler)
handler - the new handlerpublic final void parse()
throws ParseException
ParseException - the parse exceptionpublic final void Header()
throws ParseException
ParseException - the parse exceptionpublic final void Stanza()
throws ParseException
ParseException - the parse exceptionpublic final void TagValuePair()
throws ParseException
ParseException - the parse exceptionpublic final String Comment() throws ParseException
ParseException - the parse exceptionpublic void ReInit(InputStream stream)
stream - the streampublic void ReInit(InputStream stream, String encoding)
stream - the streamencoding - the encodingpublic void ReInit(Reader stream)
stream - the streampublic void ReInit(OBOParserTokenManager tm)
tm - the tmpublic final Token getNextToken()
public final Token getToken(int index)
index - the indexpublic ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014 The University of Manchester. All Rights Reserved.