Package org.apache.fontbox.type1
Class Token
java.lang.Object
org.apache.fontbox.type1.Token
A lexical token in an Adobe Type 1 font.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
All different types of tokens. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Token.Kind
private byte[]
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
private final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
(package private) static final Token.Kind
private String
-
Constructor Summary
ConstructorsConstructorDescriptionToken
(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
(String text, Token.Kind type) Constructs a new Token object given its text and kind. -
Method Summary
-
Field Details
-
STRING
-
NAME
-
LITERAL
-
REAL
-
INTEGER
-
START_ARRAY
-
END_ARRAY
-
START_PROC
-
END_PROC
-
CHARSTRING
-
START_DICT
-
END_DICT
-
text
-
data
private byte[] data -
kind
-
-
Constructor Details
-
Token
Token(String text, Token.Kind type) Constructs a new Token object given its text and kind.- Parameters:
text
-type
-
-
Token
Token(char character, Token.Kind type) Constructs a new Token object given its single-character text and kind.- Parameters:
character
-type
-
-
Token
Token(byte[] data, Token.Kind type) Constructs a new Token object given its raw data and kind. This is for CHARSTRING tokens only.- Parameters:
data
-type
-
-
-
Method Details