Class Token


  • public final class Token
    extends java.lang.Object
    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 Detail

      • 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