Class PRTokeniser


  • public class PRTokeniser
    extends java.lang.Object
    • Constructor Detail

      • PRTokeniser

        PRTokeniser​(java.lang.String filename)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • PRTokeniser

        public PRTokeniser​(byte[] pdfIn)
    • Method Detail

      • seek

        public void seek​(int pos)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getFilePointer

        public int getFilePointer()
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        void close()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • length

        int length()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readString

        java.lang.String readString​(int size)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • isWhitespace

        static final boolean isWhitespace​(int ch)
      • getTokenType

        public int getTokenType()
      • getStringValue

        public java.lang.String getStringValue()
      • getReference

        public int getReference()
      • getGeneration

        public int getGeneration()
      • backOnePosition

        void backOnePosition​(int ch)
      • throwError

        void throwError​(java.lang.String error)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • checkPdfHeader

        char checkPdfHeader()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • checkFdfHeader

        void checkFdfHeader()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getStartxref

        public int getStartxref()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getHex

        public static int getHex​(int v)
      • nextValidToken

        void nextValidToken()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • nextToken

        boolean nextToken()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • intValue

        int intValue()
      • readLineSegment

        boolean readLineSegment​(byte[] input)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • checkObjectStart

        static int[] checkObjectStart​(byte[] line)
      • isHexString

        public boolean isHexString()