Class PRTokeniser

  • All Implemented Interfaces:
    java.lang.AutoCloseable

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

      • PRTokeniser

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

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

      • isWhitespace

        public static boolean isWhitespace​(int ch)
      • isDelimiter

        public static boolean isDelimiter​(int ch)
      • isDelimiterWhitespace

        public static boolean isDelimiterWhitespace​(int ch)
      • getHex

        public static int getHex​(int v)
      • checkObjectStart

        public static int[] checkObjectStart​(byte[] line)
      • 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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • length

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

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

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

        public int getTokenType()
      • getStringValue

        public java.lang.String getStringValue()
      • getReference

        public int getReference()
      • getGeneration

        public int getGeneration()
      • backOnePosition

        public void backOnePosition​(int ch)
      • throwError

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

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

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

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

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

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

        public int intValue()
      • readLineSegment

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

        public boolean isHexString()