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:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
FileTiff.ModHuffmanInputStream
- Enclosing class:
- FileTiff
public class FileTiff.BitInputStream extends java.io.FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private intbitsAvailprivate intbufprotected intcountprivate booleaneofprotected booleannextByteMoreSignificant
-
Constructor Summary
Constructors Constructor Description BitInputStream(java.io.InputStream in)BitInputStream(java.io.InputStream in, boolean nbms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailableBits()protected 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, skip
-
-
-
-
Method Detail
-
setNextByteMoreSignificant
public void setNextByteMoreSignificant(boolean nextByteMoreSignificant)
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
availableBits
public int availableBits()
-
skipPadding
public void skipPadding(int bits) throws java.io.IOException- Throws:
java.io.IOException
-
readBit
public int readBit() throws java.io.IOException- Throws:
java.io.IOException
-
readBits
public int readBits(int bitcount) throws java.io.IOException- Throws:
java.io.IOException
-
cbCount
protected int cbCount() throws java.io.IOException- Throws:
java.io.IOException
-
needBits
public void needBits(int bitcount) throws java.io.IOException- Throws:
java.io.IOException
-
clrBits
protected void clrBits(int bitcount)
-
getBits
protected int getBits(int bitcount)
-
-