org.pdfbox.io
Class NBitOutputStream
java.lang.Object
org.pdfbox.io.NBitOutputStream
public class NBitOutputStream
extends java.lang.Object
This is an n-bit output stream. This means that you write data in n-bit chunks.
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.
|
NBitOutputStream
public NBitOutputStream(OutputStream os)
Constructor.
os
- The output stream to write to.
close
public void close()
throws IOException
This will close the stream.
getBitsInChunk
public int getBitsInChunk()
Getter for property bitsToRead.
- Value of property bitsToRead.
setBitsInChunk
public void setBitsInChunk(int bitsInChunkValue)
Setter for property bitsToRead.
bitsInChunkValue
- New value of property bitsToRead.
write
public void write(long chunk)
throws IOException
This will write the next n-bits to the stream.
chunk
- The next chunk of data to write.