org.jpedal.jbig2.decoders
Class JBIG2StreamDecoder
java.lang.Object
org.jpedal.jbig2.decoders.JBIG2StreamDecoder
public class JBIG2StreamDecoder
- extends java.lang.Object
|
Field Summary |
static boolean |
debug
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
JBIG2StreamDecoder
public JBIG2StreamDecoder()
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()