public class NBitOutputStream
extends java.lang.Object
Constructor and Description |
---|
NBitOutputStream(java.io.OutputStream os)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
This will close the stream.
|
int |
getBitsInChunk()
Getter for property bitsToRead.
|
void |
setBitsInChunk(int bitsInChunkValue)
Setter for property bitsToRead.
|
void |
write(long chunk)
This will write the next n-bits to the stream.
|
public NBitOutputStream(java.io.OutputStream os)
os
- The output stream to write to.public void write(long chunk) throws java.io.IOException
chunk
- The next chunk of data to write.java.io.IOException
- If there is an error writing the chunk.public void close() throws java.io.IOException
java.io.IOException
- if there is an error closing the stream.public int getBitsInChunk()
public void setBitsInChunk(int bitsInChunkValue)
bitsInChunkValue
- New value of property bitsToRead.