Package org.jpedal.jbig2.decoders
Class JBIG2StreamDecoder
java.lang.Object
org.jpedal.jbig2.decoders.JBIG2StreamDecoder
JBIG2StreamDecoder class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendBitmap(JBIG2Bitmap bitmap) appendBitmap.voidconsumeRemainingBits.voiddecodeJBIG2(byte[] data) decodeJBIG2.findBitmap(int bitmapNumber) findBitmap.findPageSegement(int page) findPageSegement.findSegment(int segmentNumber) findSegment.getAllSegments.intgetNumberOfPages.getPageAsJBIG2Bitmap(int i) getPageAsJBIG2Bitmap.booleanisNumberOfPagesKnown.booleanisRandomAccessOrganisationUsed.voidmovePointer(int i) movePointer.intreadBit()readBit.intreadBits(int num) readBits.shortreadByte()readByte.voidreadByte(short[] buff) readByte.
-
Field Details
-
debug
public static final boolean debugConstantdebug=false- See Also:
-
-
Constructor Details
-
JBIG2StreamDecoder
public JBIG2StreamDecoder()
-
-
Method Details
-
movePointer
public void movePointer(int i) movePointer.
- Parameters:
i- aIntegerobject.
-
decodeJBIG2
decodeJBIG2.
- Parameters:
data- an array ofobjects.invalid reference
byte- Throws:
IOException- if any.JBIG2Exception- if any.
-
findPageSegement
findPageSegement.
- Parameters:
page- aIntegerobject.- Returns:
- a
PageInformationSegmentobject.
-
findSegment
findSegment.
-
readBits
public int readBits(int num) readBits.
-
readBit
public int readBit()readBit.
- Returns:
- a
Integerobject.
-
readByte
public void readByte(short[] buff) readByte.
- Parameters:
buff- an array ofobjects.invalid reference
short
-
consumeRemainingBits
public void consumeRemainingBits()consumeRemainingBits.
-
readByte
readByte.
- Returns:
- a short.
- Throws:
IOException- if any.
-
appendBitmap
appendBitmap.
- Parameters:
bitmap- aJBIG2Bitmapobject.
-
findBitmap
findBitmap.
- Parameters:
bitmapNumber- aIntegerobject.- Returns:
- a
JBIG2Bitmapobject.
-
getPageAsJBIG2Bitmap
getPageAsJBIG2Bitmap.
- Parameters:
i- aIntegerobject.- Returns:
- a
JBIG2Bitmapobject.
-
isNumberOfPagesKnown
public boolean isNumberOfPagesKnown()isNumberOfPagesKnown.
- Returns:
- a boolean.
-
getNumberOfPages
public int getNumberOfPages()getNumberOfPages.
- Returns:
- a
Integerobject.
-
isRandomAccessOrganisationUsed
public boolean isRandomAccessOrganisationUsed()isRandomAccessOrganisationUsed.
- Returns:
- a boolean.
-
getAllSegments
getAllSegments.
- Returns:
- a
Listobject.
-