| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private Type1Font | |
| private Type1Lexer |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| private byte[] | Returns: plain textcipher text cipherBytes, int key r, int number of random bytes (lenIV) n)Type 1 Decryption (eexec, charstring). |
| private byte[] | |
| private boolean | |
| public Type1Font | parse(byte[]
Segment 1: ASCII segment1, byte[] Segment 2: Binary segment2)Parses a Type 1 font and returns a Type1Font class which represents it. |
| private void | |
| private void | |
| private Token | |
| private void | |
| private void | readCharStrings(int
The number of random bytes used in charstring encryption. lenIV)Reads the /CharStrings dictionary. |
| private void | |
| private List | |
| private void | |
| private void | |
| private Token | |
| private void | |
| private void | |
| private void | |
| private List | |
| private void | |
| private void | |
| private Map | readSimpleDict()
Reads a dictionary whose values are simple, i.e., do not contain nested dictionaries. |
| private void | |
| private void | readSubrs(int
The number of random bytes used in charstring encryption. lenIV)Reads the /Subrs array. |
| private List |
| CHARSTRING_KEY | back to summary |
|---|---|
| private static final int CHARSTRING_KEY | |
| EEXEC_KEY | back to summary |
|---|---|
| private static final int EEXEC_KEY | |
| font | back to summary |
|---|---|
| private Type1Font font | |
| lexer | back to summary |
|---|---|
| private Type1Lexer lexer | |
| Type1Parser | back to summary |
|---|---|
| pack-priv Type1Parser() | |
| arrayToNumbers | back to summary |
|---|---|
| private List Extracts values from an array as numbers. | |
| decrypt | back to summary |
|---|---|
| private byte[] decrypt(byte[] cipherBytes, int r, int n) Type 1 Decryption (eexec, charstring).
| |
| hexToBinary | back to summary |
|---|---|
| private byte[] hexToBinary(byte[] bytes) | |
| isBinary | back to summary |
|---|---|
| private boolean isBinary(byte[] bytes) | |
| parse | back to summary |
|---|---|
| public Type1Font parse(byte[] segment1, byte[] segment2) throws IOException Parses a Type 1 font and returns a Type1Font class which represents it.
| |
| parseASCII | back to summary |
|---|---|
| private void parseASCII(byte[] bytes) throws IOException Parses the ASCII portion of a Type 1 font. | |
| parseBinary | back to summary |
|---|---|
| private void parseBinary(byte[] bytes) throws IOException Parses the binary portion of a Type 1 font. | |
| read | back to summary |
|---|---|
| private Token read(Token. Reads the next token and throws an exception if it is not of the given kind.
| |
| read | back to summary |
|---|---|
| private void read(Token. Reads the next token and throws an exception if it is not of the given kind and does not have the given value. | |
| readCharStrings | back to summary |
|---|---|
| private void readCharStrings(int lenIV) throws IOException Reads the /CharStrings dictionary.
| |
| readDef | back to summary |
|---|---|
| private void readDef() throws IOException Reads the sequence "noaccess def" or equivalent. | |
| readDictValue | back to summary |
|---|---|
| private List Reads a simple value from a dictionary. | |
| readEncoding | back to summary |
|---|---|
| private void readEncoding() throws IOException | |
| readFontInfo | back to summary |
|---|---|
| private void readFontInfo(Map<String, List<Token>> fontInfo) Extracts values from the /FontInfo dictionary. | |
| readMaybe | back to summary |
|---|---|
| private Token readMaybe(Token. Reads the next token if and only if it is of the given kind and has the given value.
| |
| readOtherSubrs | back to summary |
|---|---|
| private void readOtherSubrs() throws IOException | |
| readPostScriptWrapper | back to summary |
|---|---|
| private void readPostScriptWrapper(List<Token> value) throws IOException | |
| readPrivate | back to summary |
|---|---|
| private void readPrivate(String key, List<Token> value) throws IOException Extracts values from the /Private dictionary. | |
| readProc | back to summary |
|---|---|
| private List Reads a procedure. | |
| readProcVoid | back to summary |
|---|---|
| private void readProcVoid() throws IOException Reads a procedure but without returning anything. | |
| readPut | back to summary |
|---|---|
| private void readPut() throws IOException Reads the sequence "noaccess put" or equivalent. | |
| readSimpleDict | back to summary |
|---|---|
| private Map Reads a dictionary whose values are simple, i.e., do not contain nested dictionaries. | |
| readSimpleValue | back to summary |
|---|---|
| private void readSimpleValue(String key) throws IOException | |
| readSubrs | back to summary |
|---|---|
| private void readSubrs(int lenIV) throws IOException Reads the /Subrs array.
| |
| readValue | back to summary |
|---|---|
| private List Reads a simple value. This is either a number, a string, a name, a literal name, an array, a procedure, or a charstring. This method does not support reading nested dictionaries unless they're empty. | |