public class JBIG2StreamDecoder extends 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 |
consumeRemainingBits() |
void |
decodeJBIG2(byte[] data) |
JBIG2Bitmap |
findBitmap(int bitmapNumber) |
PageInformationSegment |
findPageSegement(int page) |
Segment |
findSegment(int segmentNumber) |
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 IOException,
JBIG2Exception
IOExceptionJBIG2Exceptionpublic HuffmanDecoder getHuffmanDecoder()
public MMRDecoder getMMRDecoder()
public ArithmeticDecoder getArithmeticDecoder()
public PageInformationSegment findPageSegement(int page)
public Segment findSegment(int segmentNumber)
public int readBits(int num)
throws IOException
IOExceptionpublic int readBit()
throws IOException
IOExceptionpublic void readByte(short[] buff)
throws IOException
IOExceptionpublic void consumeRemainingBits()
throws IOException
IOExceptionpublic short readByte()
throws IOException
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 List getAllSegments()
Copyright © 2017. All rights reserved.