Class COSLexer


  • public final class COSLexer
    extends java.lang.Object
    Tokenizes raw PDF bytes into the Tokens consumed by COSParser, following the lexical rules of ISO 32000-1 §7.2 (character set, whitespace, delimiters, comments) and §7.3 (objects).
    • Constructor Detail

      • COSLexer

        public COSLexer​(byte[] data)
    • Method Detail

      • position

        public int position()
      • seek

        public void seek​(long position)
      • skipWhitespaceAndComments

        public void skipWhitespaceAndComments()
      • nextToken

        public Token nextToken()
        Reads and returns the next token, or an EOF token at end of input.