public class BitInputStream extends BitInBase
| Modifier and Type | Field and Description | 
|---|---|
| protected DataInput | disThe private input stream used internaly. | 
USUAL_EXTENSION| Modifier | Constructor and Description | 
|---|---|
| protected  | BitInputStream()Do nothing constructor used by child classes which override all methods, eg OldBitInputStream | 
|   | BitInputStream(DataInput in)Constructs an instance of the class for a given stream | 
|   | BitInputStream(File file)Constructs an instance of the class for a given file | 
|   | BitInputStream(InputStream is)Constructs an instance of the class for a given stream | 
|   | BitInputStream(String filename)Constructs an instance of the class for a given filename | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the stream. | 
| protected void | incrByte()Move forward one byte. | 
| protected void | incrByte(int i)Move forward i bytes. | 
| void | skipBytes(long len)Skip a number of bytes while reading the bit file. | 
align, getBitOffset, getByteOffset, readBinary, readDelta, readGamma, readGolomb, readIn, readInterpolativeCoding, readMinimalBinary, readMinimalBinaryZero, readSkewedGolomb, readUnary, skipBitsprotected DataInput dis
protected BitInputStream()
public BitInputStream(DataInput in) throws IOException
in - java.io.DataInput the underlying input streamIOException - if an I/O error occurspublic BitInputStream(InputStream is) throws IOException
is - java.io.InputStream the underlying input streamIOException - if an I/O error occurspublic BitInputStream(String filename) throws IOException
filename - java.lang.String the name of the undelying fileIOException - if an I/O error occurspublic BitInputStream(File file) throws IOException
file - java.io.File the underlying fileIOException - if an I/O error occurspublic void close()
           throws IOException
IOException - if an I/O error occurspublic void skipBytes(long len)
               throws IOException
len - The number of bytes to skipIOException - if an I/O error occursprotected void incrByte()
                 throws IOException
BitInBaseincrByte in class BitInBaseIOExceptionprotected void incrByte(int i)
                 throws IOException
BitInBaseincrByte in class BitInBaseIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow