Package dev.pxml.core.reader.tokenizer
Interface ITokenizer
-
- All Known Implementing Classes:
Tokenizer
public interface ITokenizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
acceptChar(char c)
char
currentChar()
int
currentColumnNumber()
int
currentLineNumber()
TextLocation
currentLocation()
java.lang.Object
getResource()
boolean
isAtChar(char c)
boolean
isAtSpaceOrTab()
boolean
isAtWhiteSpace()
boolean
isEof()
boolean
isNextChar(char c)
java.lang.String
peekCurrentNChars(int n)
char
peekNextChar()
java.lang.String
readAttributeValue()
java.lang.String
readComment()
java.lang.String
readName()
char
readNextChar()
java.lang.String
readQuotedAttributeValue()
java.lang.String
readText()
java.lang.String
readUnquotedAttributeValue()
boolean
skipComment()
boolean
skipSpacesAndTabs()
boolean
skipWhiteSpace()
-
-
-
Method Detail
-
isEof
boolean isEof()
-
currentChar
char currentChar()
-
getResource
java.lang.Object getResource()
-
currentLineNumber
int currentLineNumber()
-
currentColumnNumber
int currentColumnNumber()
-
currentLocation
TextLocation currentLocation()
-
isAtChar
boolean isAtChar(char c)
-
isNextChar
boolean isNextChar(char c) throws java.io.IOException
- Throws:
java.io.IOException
-
peekNextChar
char peekNextChar() throws java.io.IOException
- Throws:
java.io.IOException
-
peekCurrentNChars
java.lang.String peekCurrentNChars(int n) throws java.io.IOException
- Throws:
java.io.IOException
-
acceptChar
boolean acceptChar(char c) throws java.io.IOException
- Throws:
java.io.IOException
-
readNextChar
char readNextChar() throws java.io.IOException
- Throws:
java.io.IOException
-
readName
java.lang.String readName() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
readText
java.lang.String readText() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
readAttributeValue
java.lang.String readAttributeValue() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
readQuotedAttributeValue
java.lang.String readQuotedAttributeValue() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
readUnquotedAttributeValue
java.lang.String readUnquotedAttributeValue() throws java.io.IOException
- Throws:
java.io.IOException
-
skipWhiteSpace
boolean skipWhiteSpace() throws java.io.IOException
- Throws:
java.io.IOException
-
skipSpacesAndTabs
boolean skipSpacesAndTabs() throws java.io.IOException
- Throws:
java.io.IOException
-
isAtWhiteSpace
boolean isAtWhiteSpace()
-
isAtSpaceOrTab
boolean isAtSpaceOrTab()
-
readComment
java.lang.String readComment() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
skipComment
boolean skipComment() throws java.io.IOException, PXMLDataException
- Throws:
java.io.IOException
PXMLDataException
-
-