| |
|
| java.lang.Object org.pdfbox.io.NBitOutputStream
NBitOutputStream | public class NBitOutputStream (Code) | | This is an n-bit output stream. This means that you write data in n-bit chunks.
author: Ben Litchfield version: $Revision: 1.4 $ |
Method Summary | |
public void | close() This will close the stream. | public int | getBitsInChunk() Getter for property bitsToRead. | public void | setBitsInChunk(int bitsInChunkValue) Setter for property bitsToRead. | public void | write(long chunk) This will write the next n-bits to the stream. |
NBitOutputStream | public NBitOutputStream(OutputStream os)(Code) | | Constructor.
Parameters: os - The output stream to write to. |
close | public void close() throws IOException(Code) | | This will close the stream.
throws: IOException - if there is an error closing the stream. |
getBitsInChunk | public int getBitsInChunk()(Code) | | Getter for property bitsToRead.
Value of property bitsToRead. |
setBitsInChunk | public void setBitsInChunk(int bitsInChunkValue)(Code) | | Setter for property bitsToRead.
Parameters: bitsInChunkValue - New value of property bitsToRead. |
write | public void write(long chunk) throws IOException(Code) | | This will write the next n-bits to the stream.
Parameters: chunk - The next chunk of data to write. throws: IOException - If there is an error writing the chunk. |
|
|
|