public class JBIG2StreamDecoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug |
| Constructor and Description |
|---|
JBIG2StreamDecoder() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void movePointer(int i)
public void setGlobalData(byte[] data)
public void decodeJBIG2(byte[] data)
throws java.io.IOException,
JBIG2Exception
java.io.IOExceptionJBIG2Exceptionpublic HuffmanDecoder getHuffmanDecoder()
public MMRDecoder getMMRDecoder()
public ArithmeticDecoder getArithmeticDecoder()
public void cleanupPostDecode()
public PageInformationSegment findPageSegement(int page)
public Segment findSegment(int segmentNumber)
public int readBits(int num)
throws java.io.IOException
java.io.IOExceptionpublic int readBit()
throws java.io.IOException
java.io.IOExceptionpublic void readByte(short[] buff)
throws java.io.IOException
java.io.IOExceptionpublic void consumeRemainingBits()
throws java.io.IOException
java.io.IOExceptionpublic short readByte()
throws java.io.IOException
java.io.IOExceptionpublic void appendBitmap(JBIG2Bitmap bitmap)
public JBIG2Bitmap findBitmap(int bitmapNumber)
public JBIG2Bitmap getPageAsJBIG2Bitmap(int i)
public boolean isNumberOfPagesKnown()
public int getNumberOfPages()
public boolean isRandomAccessOrganisationUsed()
public java.util.List getAllSegments()