Package gov.nih.mipav.model.file
Class FileSVS.BitInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- gov.nih.mipav.model.file.FileSVS.BitInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
FileSVS.ModHuffmanInputStream
- Enclosing class:
- FileSVS
public class FileSVS.BitInputStream extends java.io.FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitsAvail
private int
buf
protected int
count
private boolean
eof
protected boolean
nextByteMoreSignificant
-
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 int
availableBits()
protected int
cbCount()
protected void
clrBits(int bitcount)
protected int
getBits(int bitcount)
void
needBits(int bitcount)
int
readBit()
int
readBits(int bitcount)
void
reset()
void
setNextByteMoreSignificant(boolean nextByteMoreSignificant)
void
skipPadding(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:
reset
in 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)
-
-