public final class Tokenizer extends Object
| Constructor and Description |
|---|
Tokenizer(FontInputStream is) |
| Modifier and Type | Method and Description |
|---|---|
static byte |
digitValue(byte c) |
byte[] |
findOptionalTokensAtStartOfLine(byte[][] tokenToFind)
Looks for one of the tokens in tokenToFind in the current stream.
|
void |
findToken(byte[] tokenToFind) |
Token |
getNextPSToken() |
static boolean |
isDelimiter(int c) |
static boolean |
isDigit(int c) |
static boolean |
isExponent(int c) |
static boolean |
isHex(int c) |
static boolean |
isNewLine(int c) |
static boolean |
isRadix(int c,
int b) |
static boolean |
isSign(int c) |
static boolean |
isWhite(int c) |
int |
read() |
void |
setReader(Reader newReader) |
public Tokenizer(FontInputStream is)
public static final boolean isWhite(int c)
public static final boolean isNewLine(int c)
public static final boolean isDelimiter(int c)
public static final boolean isSign(int c)
public static final boolean isExponent(int c)
public static final boolean isDigit(int c)
public static final boolean isHex(int c)
public static final boolean isRadix(int c,
int b)
public static final byte digitValue(byte c)
public Token getNextPSToken() throws InvalidFontException, IOException, IndexOutOfBoundsException
public void findToken(byte[] tokenToFind)
throws IOException,
InvalidFontException
IOExceptionInvalidFontExceptionpublic byte[] findOptionalTokensAtStartOfLine(byte[][] tokenToFind)
throws IOException,
InvalidFontException
tokenToFind - IOExceptionInvalidFontExceptionpublic int read()
throws IOException,
InvalidFontException
IOExceptionInvalidFontExceptionpublic void setReader(Reader newReader) throws InvalidFontException
InvalidFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved