Class StreamReader

java.lang.Object
org.jpedal.jbig2.io.StreamReader

public class StreamReader extends Object

StreamReader class.

  • Constructor Details

    • StreamReader

      public StreamReader(byte[] data)

      Constructor for StreamReader.

      Parameters:
      data - an array of
      invalid reference
      byte
      objects.
  • Method Details

    • readByte

      public short readByte(PDFSegment pdfSeg)

      readByte.

      Parameters:
      pdfSeg - a PDFSegment object.
      Returns:
      a short.
    • readByte

      public void readByte(short[] buf, PDFSegment pdfSeg) throws IOException

      readByte.

      Parameters:
      buf - an array of
      invalid reference
      short
      objects.
      pdfSeg - a PDFSegment object.
      Throws:
      IOException - if any.
    • readByte

      public short readByte()

      readByte.

      Returns:
      a short.
    • readByte

      public void readByte(short[] buf)

      readByte.

      Parameters:
      buf - an array of
      invalid reference
      short
      objects.
    • readBit

      public int readBit()

      readBit.

      Returns:
      a Integer object.
    • readBits

      public int readBits(int num)

      readBits.

      Parameters:
      num - a Integer object.
      Returns:
      a Integer object.
    • movePointer

      public void movePointer(int ammount)

      movePointer.

      Parameters:
      ammount - a Integer object.
    • consumeRemainingBits

      public void consumeRemainingBits()

      consumeRemainingBits.

    • isFinished

      public boolean isFinished()

      isFinished.

      Returns:
      a boolean.