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 TypeMethodDescriptionvoid
appendBitmap
(JBIG2Bitmap bitmap) appendBitmap.void
consumeRemainingBits.void
decodeJBIG2
(byte[] data) decodeJBIG2.findBitmap
(int bitmapNumber) findBitmap.findPageSegement
(int page) findPageSegement.findSegment
(int segmentNumber) findSegment.getAllSegments.int
getNumberOfPages.getPageAsJBIG2Bitmap
(int i) getPageAsJBIG2Bitmap.boolean
isNumberOfPagesKnown.boolean
isRandomAccessOrganisationUsed.void
movePointer
(int i) movePointer.int
readBit()
readBit.int
readBits
(int num) readBits.short
readByte()
readByte.void
readByte
(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
- aInteger
object.
-
decodeJBIG2
decodeJBIG2.
- Parameters:
data
- an array ofinvalid reference
byte
- Throws:
IOException
- if any.JBIG2Exception
- if any.
-
findPageSegement
findPageSegement.
- Parameters:
page
- aInteger
object.- Returns:
- a
PageInformationSegment
object.
-
findSegment
findSegment.
-
readBits
public int readBits(int num) readBits.
-
readBit
public int readBit()readBit.
- Returns:
- a
Integer
object.
-
readByte
public void readByte(short[] buff) readByte.
- Parameters:
buff
- an array ofinvalid reference
short
-
consumeRemainingBits
public void consumeRemainingBits()consumeRemainingBits.
-
readByte
readByte.
- Returns:
- a short.
- Throws:
IOException
- if any.
-
appendBitmap
appendBitmap.
- Parameters:
bitmap
- aJBIG2Bitmap
object.
-
findBitmap
findBitmap.
- Parameters:
bitmapNumber
- aInteger
object.- Returns:
- a
JBIG2Bitmap
object.
-
getPageAsJBIG2Bitmap
getPageAsJBIG2Bitmap.
- Parameters:
i
- aInteger
object.- Returns:
- a
JBIG2Bitmap
object.
-
isNumberOfPagesKnown
public boolean isNumberOfPagesKnown()isNumberOfPagesKnown.
- Returns:
- a boolean.
-
getNumberOfPages
public int getNumberOfPages()getNumberOfPages.
- Returns:
- a
Integer
object.
-
isRandomAccessOrganisationUsed
public boolean isRandomAccessOrganisationUsed()isRandomAccessOrganisationUsed.
- Returns:
- a boolean.
-
getAllSegments
getAllSegments.
- Returns:
- a
List
object.
-