Class JBIG2StreamDecoder

java.lang.Object
org.jpedal.jbig2.decoders.JBIG2StreamDecoder

public class JBIG2StreamDecoder extends Object

JBIG2StreamDecoder class.

  • Field Details

  • Constructor Details

    • JBIG2StreamDecoder

      public JBIG2StreamDecoder()
  • Method Details

    • movePointer

      public void movePointer(int i)

      movePointer.

      Parameters:
      i - a Integer object.
    • decodeJBIG2

      public void decodeJBIG2(byte[] data) throws IOException, JBIG2Exception

      decodeJBIG2.

      Parameters:
      data - an array of
      invalid reference
      byte
      objects.
      Throws:
      IOException - if any.
      JBIG2Exception - if any.
    • findPageSegement

      public PageInformationSegment findPageSegement(int page)

      findPageSegement.

      Parameters:
      page - a Integer object.
      Returns:
      a PageInformationSegment object.
    • findSegment

      public Segment findSegment(int segmentNumber)

      findSegment.

      Parameters:
      segmentNumber - a Integer object.
      Returns:
      a Segment object.
    • readBits

      public int readBits(int num)

      readBits.

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

      public int readBit()

      readBit.

      Returns:
      a Integer object.
    • readByte

      public void readByte(short[] buff)

      readByte.

      Parameters:
      buff - an array of
      invalid reference
      short
      objects.
    • consumeRemainingBits

      public void consumeRemainingBits()

      consumeRemainingBits.

    • readByte

      public short readByte() throws IOException

      readByte.

      Returns:
      a short.
      Throws:
      IOException - if any.
    • appendBitmap

      public void appendBitmap(JBIG2Bitmap bitmap)

      appendBitmap.

      Parameters:
      bitmap - a JBIG2Bitmap object.
    • findBitmap

      public JBIG2Bitmap findBitmap(int bitmapNumber)

      findBitmap.

      Parameters:
      bitmapNumber - a Integer object.
      Returns:
      a JBIG2Bitmap object.
    • getPageAsJBIG2Bitmap

      public JBIG2Bitmap getPageAsJBIG2Bitmap(int i)

      getPageAsJBIG2Bitmap.

      Parameters:
      i - a Integer object.
      Returns:
      a JBIG2Bitmap object.
    • isNumberOfPagesKnown

      public boolean isNumberOfPagesKnown()

      isNumberOfPagesKnown.

      Returns:
      a boolean.
    • getNumberOfPages

      public int getNumberOfPages()

      getNumberOfPages.

      Returns:
      a Integer object.
    • isRandomAccessOrganisationUsed

      public boolean isRandomAccessOrganisationUsed()

      isRandomAccessOrganisationUsed.

      Returns:
      a boolean.
    • getAllSegments

      public List<Segment> getAllSegments()

      getAllSegments.

      Returns:
      a List object.