Package org.verapdf.parser
Class SeekableBaseParser
java.lang.Object
org.verapdf.parser.BaseParser
org.verapdf.parser.SeekableBaseParser
- Direct Known Subclasses:
AFMParser,FunctionParser
- Author:
- Timur Kamalov
-
Field Summary
Fields inherited from class org.verapdf.parser.BaseParser
isPSParser, source, token -
Constructor Summary
ConstructorsConstructorDescriptionSeekableBaseParser(InputStream fileStream) SeekableBaseParser(String fileName) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanfindKeyword(Token.Keyword keyword, int lookUpSize) protected StringgetErrorMessage(String message) protected StringgetErrorMessage(String message, long offset) protected StringgetLine(int offset) getRandomAccess(long length) static byte[]getRawBytes(String string) protected SeekableInputStreamprotected booleanisEOL(byte ch) protected static booleanisHexDigit(byte ch) protected booleanprotected voidnextLine()protected voidprotected voidprotected voidskipExpectedCharacter(char exp) protected voidprotected voidMethods inherited from class org.verapdf.parser.BaseParser
appendToToken, appendToToken, clearToken, decodeASCII85, findKeyword, getLine, getLineBytes, getToken, initializeToken, isCR, isDigit, isDigit, isFF, isLF, isPSParser, nextToken, readName, readNumber, readUntilDelimiter, skipSingleSpace, skipSpaces, skipSpaces
-
Constructor Details
-
SeekableBaseParser
- Throws:
IOException
-
SeekableBaseParser
- Throws:
IOException
-
SeekableBaseParser
- Throws:
IOException
-
-
Method Details
-
closeInputStream
- Throws:
IOException
-
getLine
- Throws:
IOException
-
findKeyword
- Specified by:
findKeywordin classBaseParser- Throws:
IOException
-
getRandomAccess
- Throws:
IOException
-
isNextByteEOL
- Throws:
IOException
-
skipSingleEol
- Throws:
IOException
-
skipSingleSpace
- Throws:
IOException
-
isHexDigit
protected static boolean isHexDigit(byte ch) -
skipComment
- Specified by:
skipCommentin classBaseParser- Throws:
IOException
-
nextLine
- Throws:
IOException
-
isEOL
- Throws:
IOException
-
readASCII85
- Specified by:
readASCII85in classBaseParser- Throws:
IOException
-
getRawBytes
-
skipExpectedCharacter
- Throws:
IOException
-
getErrorMessage
- Overrides:
getErrorMessagein classBaseParser
-
getErrorMessage
-
getSource
- Overrides:
getSourcein classBaseParser
-