public class NBitInputStream extends Object
| Constructor and Description |
|---|
NBitInputStream(InputStream is)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsInChunk()
Getter for property bitsToRead.
|
long |
read()
This will read the next n bits from the stream and return the unsigned
value of those bits.
|
void |
setBitsInChunk(int bitsInChunkValue)
Setter for property bitsToRead.
|
void |
unread(long data)
This will unread some data.
|
public NBitInputStream(InputStream is)
is - The input stream to read from.public void unread(long data)
data - The data to put back into the stream.public long read()
throws IOException
IOException - If there is an error reading from the underlying stream.public int getBitsInChunk()
public void setBitsInChunk(int bitsInChunkValue)
bitsInChunkValue - New value of property bitsToRead.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.