Package org.verapdf.pd.font.type3
Class Type3CharProcParser
- java.lang.Object
-
- org.verapdf.parser.NotSeekableBaseParser
-
- org.verapdf.pd.font.type3.Type3CharProcParser
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class Type3CharProcParser extends NotSeekableBaseParser
Parses type 3 char procs to obtain glyph widths.- Author:
- Sergey Shemyakov
-
-
Field Summary
-
Fields inherited from class org.verapdf.parser.NotSeekableBaseParser
isPSParser, source
-
-
Constructor Summary
Constructors Constructor Description Type3CharProcParser(ASInputStream charProcStream)
Constructor parser from char proc data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getWidth()
void
parse()
Parses width from given char proc string.-
Methods inherited from class org.verapdf.parser.NotSeekableBaseParser
close, extendArray, findKeyword, findKeyword, getLineBytes, getToken, initializeToken, isCR, isDigit, isDigit, isEndOfComment, isFF, isLF, nextToken, readLine, readNumber, readUntilDelimiter, skipSpaces, skipSpaces, skipStreamSpaces
-
-
-
-
Constructor Detail
-
Type3CharProcParser
public Type3CharProcParser(ASInputStream charProcStream) throws IOException
Constructor parser from char proc data.- Throws:
IOException
-
-
Method Detail
-
parse
public void parse() throws IOException
Parses width from given char proc string.- Throws:
IOException
- if stream reading error occurred or input stream can't be parsed.
-
getWidth
public double getWidth()
- Returns:
- width of glyph presented by given char proc or -1 if parsing failed or was not performed.
-
-