| Modifier and Type | Class and Description |
|---|---|
| private static class | CMapParser.
Internal class. |
| private static class | CMapParser.
Internal class. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private boolean | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CMapParser(boolean
activates the strict mode used for inline CMaps strictMode)Creates a new instance of CMapParser. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | checkExpectedOperator(CMapParser.
Instance of operator operator,Expected name of operator expectedOperatorName, String The name of the range in which the operator is expected (without a tilde
character), to be used in the exception message. rangeName)Throws an IOException if expectedOperatorName not equals operator.op |
| private static String | |
| private RandomAccessRead | getExternalCMap(String
Name of the given "use" CMap resource. name)Returns a RandomAccessRead containing the given "use" CMap. |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| public CMap | Returns: The parsed source as a java object, never null.the source of the CMap to be parsed. randomAcccessRead)This will parse the stream and create a cmap object. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private byte[] | |
| private Integer | |
| private void | |
| private Object | |
| public CMap | Returns: The parsed predefined CMap as a java object, never null.CMap name. name)Parses a predefined CMap. |
| private void | |
| private List | |
| private Object | |
| private String | |
| private CMapParser. | |
| private Number | |
| private CMapParser. | |
| private String | |
| private void |
| MARK_END_OF_ARRAY | back to summary |
|---|---|
| private static final String MARK_END_OF_ARRAY | |
| MARK_END_OF_DICTIONARY | back to summary |
|---|---|
| private static final String MARK_END_OF_DICTIONARY | |
| strictMode | back to summary |
|---|---|
| private boolean strictMode | |
| tokenParserByteBuffer | back to summary |
|---|---|
| private final byte[] tokenParserByteBuffer | |
| CMapParser | back to summary |
|---|---|
| public CMapParser() Creates a new instance of CMapParser. | |
| CMapParser | back to summary |
|---|---|
| public CMapParser(boolean strictMode) Creates a new instance of CMapParser.
| |
| addMappingFrombfrange | back to summary |
|---|---|
| private void addMappingFrombfrange(CMap cmap, byte[] startCode, List<byte[]> tokenBytesList) | |
| addMappingFrombfrange | back to summary |
|---|---|
| private void addMappingFrombfrange(CMap cmap, byte[] startCode, int values, byte[] tokenBytes) | |
| checkExpectedOperator | back to summary |
|---|---|
| private void checkExpectedOperator(CMapParser. Throws an IOException if expectedOperatorName not equals operator.op
| |
| createStringFromBytes | back to summary |
|---|---|
| private static String createStringFromBytes(byte[] bytes) | |
| getExternalCMap | back to summary |
|---|---|
| private RandomAccessRead getExternalCMap(String name) throws IOException Returns a RandomAccessRead containing the given "use" CMap.
| |
| increment | back to summary |
|---|---|
| private static boolean increment(byte[] data, int position, boolean useStrictMode) | |
| isDelimiter | back to summary |
|---|---|
| private static boolean isDelimiter(int aByte) Is this a standard PDF delimiter character? | |
| isWhitespaceOrEOF | back to summary |
|---|---|
| private static boolean isWhitespaceOrEOF(int aByte) | |
| parse | back to summary |
|---|---|
| public CMap parse(RandomAccessRead randomAcccessRead) throws IOException This will parse the stream and create a cmap object.
| |
| parseBeginbfchar | back to summary |
|---|---|
| private void parseBeginbfchar(Number cosCount, RandomAccessRead randomAcccessRead, CMap result) throws IOException | |
| parseBeginbfrange | back to summary |
|---|---|
| private void parseBeginbfrange(Number cosCount, RandomAccessRead randomAcccessRead, CMap result) throws IOException | |
| parseBegincidchar | back to summary |
|---|---|
| private void parseBegincidchar(Number cosCount, RandomAccessRead randomAcccessRead, CMap result) throws IOException | |
| parseBegincidrange | back to summary |
|---|---|
| private void parseBegincidrange(int numberOfLines, RandomAccessRead randomAcccessRead, CMap result) throws IOException | |
| parseBegincodespacerange | back to summary |
|---|---|
| private void parseBegincodespacerange(Number cosCount, RandomAccessRead randomAcccessRead, CMap result) throws IOException | |
| parseByteArray | back to summary |
|---|---|
| private byte[] parseByteArray(RandomAccessRead randomAcccessRead) throws IOException | |
| parseInteger | back to summary |
|---|---|
| private Integer parseInteger(RandomAccessRead randomAcccessRead) throws IOException | |
| parseLiteralName | back to summary |
|---|---|
| private void parseLiteralName(CMapParser. | |
| parseNextToken | back to summary |
|---|---|
| private Object parseNextToken(RandomAccessRead randomAcccessRead) throws IOException | |
| parsePredefined | back to summary |
|---|---|
| public CMap parsePredefined(String name) throws IOException Parses a predefined CMap.
| |
| parseUsecmap | back to summary |
|---|---|
| private void parseUsecmap(CMapParser. | |
| readArray | back to summary |
|---|---|
| private List | |
| readDictionary | back to summary |
|---|---|
| private Object readDictionary(RandomAccessRead randomAcccessRead) throws IOException | |
| readLine | back to summary |
|---|---|
| private String readLine(RandomAccessRead randomAcccessRead, int firstByte) throws IOException | |
| readLiteralName | back to summary |
|---|---|
| private CMapParser. | |
| readNumber | back to summary |
|---|---|
| private Number readNumber(RandomAccessRead randomAcccessRead, int firstByte) throws IOException | |
| readOperator | back to summary |
|---|---|
| private CMapParser. | |
| readString | back to summary |
|---|---|
| private String readString(RandomAccessRead randomAcccessRead) throws IOException | |
| readUntilEndOfLine | back to summary |
|---|---|
| private void readUntilEndOfLine(RandomAccessRead randomAcccessRead, StringBuilder buf) throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| name | back to summary |
|---|---|
| private final String name | |
| LiteralName | back to summary |
|---|---|
| private LiteralName(String theName) | |
| op | back to summary |
|---|---|
| private final String op | |
| Operator | back to summary |
|---|---|
| private Operator(String theOp) | |