public class Type1CharStringParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
CALLOTHERSUBR |
(package private) static int |
CALLSUBR |
private java.lang.String |
fontName |
private java.lang.String |
glyphName |
private static org.apache.commons.logging.Log |
LOG |
(package private) static int |
POP |
(package private) static int |
RETURN |
(package private) static int |
TWO_BYTE |
Constructor and Description |
---|
Type1CharStringParser(java.lang.String fontName,
java.lang.String glyphName)
Constructs a new Type1CharStringParser object.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Object> |
parse(byte[] bytes,
java.util.List<byte[]> subrs)
The given byte array will be parsed and converted to a Type1 sequence.
|
private java.util.List<java.lang.Object> |
parse(byte[] bytes,
java.util.List<byte[]> subrs,
java.util.List<java.lang.Object> sequence) |
private CharStringCommand |
readCommand(DataInput input,
int b0) |
private java.lang.Integer |
readNumber(DataInput input,
int b0) |
private static java.lang.Integer |
removeInteger(java.util.List<java.lang.Object> sequence) |
private static final org.apache.commons.logging.Log LOG
static final int RETURN
static final int CALLSUBR
static final int TWO_BYTE
static final int CALLOTHERSUBR
static final int POP
private final java.lang.String fontName
private final java.lang.String glyphName
public Type1CharStringParser(java.lang.String fontName, java.lang.String glyphName)
fontName
- font nameglyphName
- glyph namepublic java.util.List<java.lang.Object> parse(byte[] bytes, java.util.List<byte[]> subrs) throws java.io.IOException
bytes
- the given mapping as byte arraysubrs
- list of local subroutinesjava.io.IOException
- if an error occurs during readingprivate java.util.List<java.lang.Object> parse(byte[] bytes, java.util.List<byte[]> subrs, java.util.List<java.lang.Object> sequence) throws java.io.IOException
java.io.IOException
private static java.lang.Integer removeInteger(java.util.List<java.lang.Object> sequence) throws java.io.IOException
java.io.IOException
private CharStringCommand readCommand(DataInput input, int b0) throws java.io.IOException
java.io.IOException
private java.lang.Integer readNumber(DataInput input, int b0) throws java.io.IOException
java.io.IOException