Package org.jpedal.jbig2.io
Class StreamReader
java.lang.Object
org.jpedal.jbig2.io.StreamReader
StreamReader class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeRemainingBits.booleanisFinished.voidmovePointer(int ammount) movePointer.intreadBit()readBit.intreadBits(int num) readBits.shortreadByte()readByte.voidreadByte(short[] buf) readByte.voidreadByte(short[] buf, PDFSegment pdfSeg) readByte.shortreadByte(PDFSegment pdfSeg) readByte.
-
Constructor Details
-
StreamReader
public StreamReader(byte[] data) Constructor for StreamReader.
- Parameters:
data- an array ofobjects.invalid reference
byte
-
-
Method Details
-
readByte
readByte.
- Parameters:
pdfSeg- aPDFSegmentobject.- Returns:
- a short.
-
readByte
readByte.
- Parameters:
buf- an array ofobjects.invalid reference
shortpdfSeg- aPDFSegmentobject.- Throws:
IOException- if any.
-
readByte
public short readByte()readByte.
- Returns:
- a short.
-
readByte
public void readByte(short[] buf) readByte.
- Parameters:
buf- an array ofobjects.invalid reference
short
-
readBit
public int readBit()readBit.
- Returns:
- a
Integerobject.
-
readBits
public int readBits(int num) readBits.
-
movePointer
public void movePointer(int ammount) movePointer.
- Parameters:
ammount- aIntegerobject.
-
consumeRemainingBits
public void consumeRemainingBits()consumeRemainingBits.
-
isFinished
public boolean isFinished()isFinished.
- Returns:
- a boolean.
-