public class NBitOutputStream extends Object
| Constructor and Description |
|---|
NBitOutputStream(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(OutputStream os)
os - The output stream to write to.public void write(long chunk)
throws IOException
chunk - The next chunk of data to write.IOException - If there is an error writing the chunk.public void close()
throws IOException
IOException - if there is an error closing the 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.