Package com.lowagie.text.pdf.fonts.cmaps
Class CMapParser
java.lang.Object
com.lowagie.text.pdf.fonts.cmaps.CMapParser
This will parser a CMap stream.
- Since:
- 2.1.4
- Version:
- $Revision: 4065 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
Internal class.private class
Internal class. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
compare
(byte[] first, byte[] second) private String
createStringFromBytes
(byte[] bytes) private void
increment
(byte[] data) private void
increment
(byte[] data, int position) private boolean
isWhitespaceOrEOF
(int aByte) static void
A simple class to test parsing of cmap files.parse
(InputStream input) This will parse the stream and create a cmap object.private Object
private void
readUntilEndOfLine
(InputStream is, StringBuffer buf)
-
Field Details
-
BEGIN_CODESPACE_RANGE
- See Also:
-
BEGIN_BASE_FONT_CHAR
- See Also:
-
BEGIN_BASE_FONT_RANGE
- See Also:
-
MARK_END_OF_DICTIONARY
- See Also:
-
MARK_END_OF_ARRAY
- See Also:
-
tokenParserByteBuffer
private byte[] tokenParserByteBuffer
-
-
Constructor Details
-
CMapParser
public CMapParser()Creates a new instance of CMapParser.
-
-
Method Details
-
main
A simple class to test parsing of cmap files.- Parameters:
args
- Some command line arguments.- Throws:
Exception
- If there is an error parsing the file.
-
parse
This will parse the stream and create a cmap object.- 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.
-
parseNextToken
- Throws:
IOException
-
readUntilEndOfLine
- Throws:
IOException
-
isWhitespaceOrEOF
private boolean isWhitespaceOrEOF(int aByte) -
increment
private void increment(byte[] data) -
increment
private void increment(byte[] data, int position) -
createStringFromBytes
- Throws:
IOException
-
compare
private int compare(byte[] first, byte[] second)
-