com.lowagie.text.pdf.fonts.cmaps
public class CMapParser extends Object
Since: 2.1.4
Version: $Revision: 3943 $
| Nested Class Summary | |
|---|---|
| class | CMapParser.LiteralName
Internal class. |
| class | CMapParser.Operator
Internal class. |
| Field Summary | |
|---|---|
| static String | BEGIN_BASE_FONT_CHAR |
| static String | BEGIN_BASE_FONT_RANGE |
| static String | BEGIN_CODESPACE_RANGE |
| static String | MARK_END_OF_ARRAY |
| static String | MARK_END_OF_DICTIONARY |
| byte[] | tokenParserByteBuffer |
| Constructor Summary | |
|---|---|
| CMapParser()
Creates a new instance of CMapParser. | |
| Method Summary | |
|---|---|
| int | compare(byte[] first, byte[] second) |
| String | createStringFromBytes(byte[] bytes) |
| void | increment(byte[] data) |
| void | increment(byte[] data, int position) |
| boolean | isWhitespaceOrEOF(int aByte) |
| static void | main(String[] args)
A simple class to test parsing of cmap files.
|
| CMap | parse(InputStream input)
This will parse the stream and create a cmap object.
|
| Object | parseNextToken(PushbackInputStream is) |
| void | readUntilEndOfLine(InputStream is, StringBuffer buf) |
Parameters: args Some command line arguments.
Throws: Exception If there is an error parsing the file.
Parameters: input The CMAP stream to parse.
Returns: The parsed stream as a java object.
Throws: IOException If there is an error parsing the stream.