Class Token
java.lang.Object
com.adobe.fontengine.font.postscript.Token
A 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 -
Method Summary
Modifier and TypeMethodDescriptionintconvertInteger(int pos) convert an integer held in this token and return it.booleanisEOL()booleanmatches(byte[] tokenToFind) stringTokenToString(int startPos, int endPos)
-
Field Details
-
tokenType
-
buff
public byte[] buff -
tokenLength
public int tokenLength
-
-
Method Details
-
matches
public boolean matches(byte[] tokenToFind) -
isEOL
public boolean isEOL() -
stringTokenToString
-
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
-