org.jpedal.jbig2.decoders
Class JBIG2StreamDecoder

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

public class JBIG2StreamDecoder
extends java.lang.Object


Field Summary
static boolean debug
           
 
Constructor Summary
JBIG2StreamDecoder()
           
 
Method Summary
 void appendBitmap(JBIG2Bitmap bitmap)
           
 void cleanupPostDecode()
           
 void consumeRemainingBits()
           
 void decodeJBIG2(byte[] data)
           
 JBIG2Bitmap findBitmap(int bitmapNumber)
           
 PageInformationSegment findPageSegement(int page)
           
 Segment findSegment(int segmentNumber)
           
 java.util.List getAllSegments()
           
 ArithmeticDecoder getArithmeticDecoder()
           
 HuffmanDecoder getHuffmanDecoder()
           
 MMRDecoder getMMRDecoder()
           
 int getNumberOfPages()
           
 JBIG2Bitmap getPageAsJBIG2Bitmap(int i)
           
 boolean isNumberOfPagesKnown()
           
 boolean isRandomAccessOrganisationUsed()
           
 void movePointer(int i)
           
 int readBit()
           
 int readBits(int num)
           
 short readByte()
           
 void readByte(short[] buff)
           
 void setGlobalData(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Constructor Detail

JBIG2StreamDecoder

public JBIG2StreamDecoder()
Method Detail

movePointer

public void movePointer(int i)

setGlobalData

public void setGlobalData(byte[] data)

decodeJBIG2

public void decodeJBIG2(byte[] data)
                 throws java.io.IOException,
                        JBIG2Exception
Throws:
java.io.IOException
JBIG2Exception

getHuffmanDecoder

public HuffmanDecoder getHuffmanDecoder()

getMMRDecoder

public MMRDecoder getMMRDecoder()

getArithmeticDecoder

public ArithmeticDecoder getArithmeticDecoder()

cleanupPostDecode

public void cleanupPostDecode()

findPageSegement

public PageInformationSegment findPageSegement(int page)

findSegment

public Segment findSegment(int segmentNumber)

readBits

public int readBits(int num)
             throws java.io.IOException
Throws:
java.io.IOException

readBit

public int readBit()
            throws java.io.IOException
Throws:
java.io.IOException

readByte

public void readByte(short[] buff)
              throws java.io.IOException
Throws:
java.io.IOException

consumeRemainingBits

public void consumeRemainingBits()
                          throws java.io.IOException
Throws:
java.io.IOException

readByte

public short readByte()
               throws java.io.IOException
Throws:
java.io.IOException

appendBitmap

public void appendBitmap(JBIG2Bitmap bitmap)

findBitmap

public JBIG2Bitmap findBitmap(int bitmapNumber)

getPageAsJBIG2Bitmap

public JBIG2Bitmap getPageAsJBIG2Bitmap(int i)

isNumberOfPagesKnown

public boolean isNumberOfPagesKnown()

getNumberOfPages

public int getNumberOfPages()

isRandomAccessOrganisationUsed

public boolean isRandomAccessOrganisationUsed()

getAllSegments

public java.util.List getAllSegments()