Package | Description |
---|---|
org.apache.fontbox.type1 |
This package holds classes used to parse Type1-Fonts.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Token.Kind |
Token.CHARSTRING |
(package private) static Token.Kind |
Token.END_ARRAY |
(package private) static Token.Kind |
Token.END_DICT |
(package private) static Token.Kind |
Token.END_PROC |
(package private) static Token.Kind |
Token.INTEGER |
private Token.Kind |
Token.kind |
(package private) static Token.Kind |
Token.LITERAL |
(package private) static Token.Kind |
Token.NAME |
(package private) static Token.Kind |
Token.REAL |
(package private) static Token.Kind |
Token.START_ARRAY |
(package private) static Token.Kind |
Token.START_DICT |
(package private) static Token.Kind |
Token.START_PROC |
(package private) static Token.Kind |
Token.STRING |
Modifier and Type | Method and Description |
---|---|
Token.Kind |
Token.getKind() |
static Token.Kind |
Token.Kind.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Token.Kind[] |
Token.Kind.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
private Token |
Type1Parser.read(Token.Kind kind)
Reads the next token and throws an error if it is not of the given kind.
|
private void |
Type1Parser.read(Token.Kind kind,
java.lang.String name)
Reads the next token and throws an error if it is not of the given kind
and does not have the given value.
|
private Token |
Type1Parser.readMaybe(Token.Kind kind,
java.lang.String name)
Reads the next token if and only if it is of the given kind and
has the given value.
|
Constructor and Description |
---|
Token(byte[] data,
Token.Kind type)
Constructs a new Token object given its raw data and kind.
|
Token(char character,
Token.Kind type)
Constructs a new Token object given its single-character text and kind.
|
Token(java.lang.String text,
Token.Kind type)
Constructs a new Token object given its text and kind.
|