|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.io.NBitOutputStream
public class NBitOutputStream
This is an n-bit output stream. This means that you write data in n-bit chunks.
Constructor Summary | |
---|---|
NBitOutputStream(OutputStream os)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NBitOutputStream(OutputStream os)
os
- The output stream to write to.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |