Package org.jpedal.jbig2.io
Class StreamReader
java.lang.Object
org.jpedal.jbig2.io.StreamReader
StreamReader class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeRemainingBits.boolean
isFinished.void
movePointer
(int ammount) movePointer.int
readBit()
readBit.int
readBits
(int num) readBits.short
readByte()
readByte.void
readByte
(short[] buf) readByte.void
readByte
(short[] buf, PDFSegment pdfSeg) readByte.short
readByte
(PDFSegment pdfSeg) readByte.
-
Constructor Details
-
StreamReader
public StreamReader(byte[] data) Constructor for StreamReader.
- Parameters:
data
- an array ofinvalid reference
byte
-
-
Method Details
-
readByte
readByte.
- Parameters:
pdfSeg
- aPDFSegment
object.- Returns:
- a short.
-
readByte
readByte.
- Parameters:
buf
- an array ofinvalid reference
short
pdfSeg
- aPDFSegment
object.- Throws:
IOException
- if any.
-
readByte
public short readByte()readByte.
- Returns:
- a short.
-
readByte
public void readByte(short[] buf) readByte.
- Parameters:
buf
- an array ofinvalid reference
short
-
readBit
public int readBit()readBit.
- Returns:
- a
Integer
object.
-
readBits
public int readBits(int num) readBits.
-
movePointer
public void movePointer(int ammount) movePointer.
- Parameters:
ammount
- aInteger
object.
-
consumeRemainingBits
public void consumeRemainingBits()consumeRemainingBits.
-
isFinished
public boolean isFinished()isFinished.
- Returns:
- a boolean.
-