Package gov.nih.mipav.model.file
Class FileTiff.BitInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.nih.mipav.model.file.FileTiff.BitInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
FileTiff.ModHuffmanInputStream
- Enclosing class:
FileTiff
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprotected intprivate booleanprotected booleanFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intcbCount()protected voidclrBits(int bitcount) protected intgetBits(int bitcount) voidneedBits(int bitcount) intreadBit()intreadBits(int bitcount) voidreset()voidsetNextByteMoreSignificant(boolean nextByteMoreSignificant) voidskipPadding(int bits) Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
buf
private int buf -
bitsAvail
private int bitsAvail -
eof
private boolean eof -
count
protected int count -
nextByteMoreSignificant
protected boolean nextByteMoreSignificant
-
-
Constructor Details
-
BitInputStream
-
BitInputStream
-
-
Method Details
-
setNextByteMoreSignificant
public void setNextByteMoreSignificant(boolean nextByteMoreSignificant) -
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
availableBits
public int availableBits() -
skipPadding
- Throws:
IOException
-
readBit
- Throws:
IOException
-
readBits
- Throws:
IOException
-
cbCount
- Throws:
IOException
-
needBits
- Throws:
IOException
-
clrBits
protected void clrBits(int bitcount) -
getBits
protected int getBits(int bitcount)
-