|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.io.BitStream
public class BitStream
The class BitStream is designed to convert an input stream of
bytes into bits. A BitStream is primarily used when bit
manipulation of stream needed, such as when bit data is needed for encoding
a image.
| Constructor Summary | |
|---|---|
BitStream(java.io.InputStream i)
Create a new instance of a BitStream from the given
input stream. |
|
BitStream(java.io.OutputStream o)
Create a new instance of a BitStream from the given
output stream. |
|
| Method Summary | |
|---|---|
boolean |
atEndOfFile()
|
int |
available()
|
void |
close()
Close all streams data associated with this object |
int |
getBits(int i)
|
void |
putBit(int i)
|
void |
putRunBits(int i,
int len)
|
void |
skipByte()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BitStream(java.io.InputStream i)
BitStream from the given
input stream.
i - input stream to create a bit stream from.public BitStream(java.io.OutputStream o)
BitStream from the given
output stream.
o - output stream to create a bit stream from.| Method Detail |
|---|
public void close()
throws java.io.IOException
java.io.IOException - error closing stream
public int getBits(int i)
throws java.io.IOException
i -
java.io.IOExceptionpublic boolean atEndOfFile()
public void putBit(int i)
throws java.io.IOException
i -
java.io.IOException
public void putRunBits(int i,
int len)
throws java.io.IOException
i - len -
java.io.IOException
public int available()
throws java.io.IOException
java.io.IOException
public void skipByte()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||