Package org.verapdf.parser
Class BaseParser
java.lang.Object
org.verapdf.parser.BaseParser
- Direct Known Subclasses:
NotSeekableBaseParser,SeekableBaseParser
- Author:
- Maxim Plushchov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected BaseParserInputStreamprotected Token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendToToken(int ch) protected voidprotected booleanfindKeyword(Token.Keyword keyword) protected abstract booleanfindKeyword(Token.Keyword keyword, int lookUpSize) protected StringgetErrorMessage(String message) protected StringgetLine()protected byte[]protected BaseParserInputStreamprotected TokengetToken()protected voidprotected static booleanisCR(int c) protected booleanisDigit()protected static booleanisDigit(byte c) protected static booleanisFF(int c) protected static booleanisLF(int c) protected voidprotected abstract voidprotected voidreadName()protected voidprotected Stringprotected abstract voidprotected booleanskipSingleSpace(boolean skipComment) protected voidvoidskipSpaces(boolean skipComment)
-
Field Details
-
isPSParser
protected boolean isPSParser -
token
-
source
-
-
Constructor Details
-
BaseParser
public BaseParser()
-
-
Method Details
-
getToken
-
initializeToken
protected void initializeToken() -
appendToToken
protected void appendToToken(int ch) -
clearToken
protected void clearToken() -
readUntilDelimiter
- Throws:
IOException
-
findKeyword
- Throws:
IOException
-
findKeyword
- Throws:
IOException
-
skipSpaces
- Throws:
IOException
-
skipSpaces
- Throws:
IOException
-
skipSingleSpace
- Throws:
IOException
-
skipComment
- Throws:
IOException
-
isDigit
- Throws:
IOException
-
isDigit
protected static boolean isDigit(byte c) -
isLF
protected static boolean isLF(int c) -
isCR
protected static boolean isCR(int c) -
isFF
protected static boolean isFF(int c) -
readASCII85
- Throws:
IOException
-
nextToken
- Throws:
IOException
-
getLine
- Throws:
IOException
-
getLineBytes
- Throws:
IOException
-
readNumber
- Throws:
IOException
-
readName
- Throws:
IOException
-
getErrorMessage
-
getSource
-