Modifier and Type | Field and Description |
---|---|
(package private) int |
bitsLeft_ |
(package private) boolean |
blocks_
note this also indicates gif format BITFile.
|
(package private) byte[] |
buffer_ |
(package private) int |
index_ |
(package private) OutputStream |
output_ |
Constructor and Description |
---|
BitFile(OutputStream output,
boolean blocks) |
OutputStream output_
byte[] buffer_
int index_
int bitsLeft_
boolean blocks_
public BitFile(OutputStream output, boolean blocks)
output
- destination for output datablocks
- GIF LZW requires block counts for output datapublic void flush() throws IOException
IOException
public void writeBits(int bits, int numbits) throws IOException
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses