Class Token
- java.lang.Object
-
- com.adobe.fontengine.font.postscript.Token
-
public final class Token extends java.lang.ObjectA postscript token. Generally, this is what is a parsed unit according to the Tokenizer class.Synchronization
This class is NOT threadsafe. Multiple instances can safely coexist without threadsafety issues, but each must only be accessed from one thread (or must be guarded by the client).
-
-
Field Summary
Fields Modifier and Type Field Description byte[]buffinttokenLengthTokenTypetokenType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intconvertInteger(int pos)convert an integer held in this token and return it.booleanisEOL()booleanmatches(byte[] tokenToFind)java.lang.StringstringTokenToString(int startPos, int endPos)
-
-
-
Field Detail
-
tokenType
public TokenType tokenType
-
buff
public byte[] buff
-
tokenLength
public int tokenLength
-
-
Method Detail
-
matches
public boolean matches(byte[] tokenToFind)
-
isEOL
public boolean isEOL()
-
stringTokenToString
public java.lang.String stringTokenToString(int startPos, int endPos)
-
convertInteger
public int convertInteger(int pos)
convert an integer held in this token and return it.- Parameters:
pos- the position in this token to begin parsing.- Returns:
- the parsed integer
-
-