Class Tokenizer


  • public final class Tokenizer
    extends java.lang.Object
    A postscript tokenizer.

    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).
    • Method Detail

      • isWhite

        public static final boolean isWhite​(int c)
      • isNewLine

        public static final boolean isNewLine​(int c)
      • isDelimiter

        public static final boolean isDelimiter​(int c)
      • isSign

        public static final boolean isSign​(int c)
      • isExponent

        public static final boolean isExponent​(int c)
      • isDigit

        public static final boolean isDigit​(int c)
      • isHex

        public static final boolean isHex​(int c)
      • isRadix

        public static final boolean isRadix​(int c,
                                            int b)
      • digitValue

        public static final byte digitValue​(byte c)
      • findOptionalTokensAtStartOfLine

        public byte[] findOptionalTokensAtStartOfLine​(byte[][] tokenToFind)
                                               throws java.io.IOException,
                                                      InvalidFontException
        Looks for one of the tokens in tokenToFind in the current stream. Will read until the end of the stream if none of the tokens is found.
        Parameters:
        tokenToFind -
        Returns:
        the element in tokenToFind that was found, or null if none of the tokens was found.
        Throws:
        java.io.IOException
        InvalidFontException