public class BitFile extends Object
| 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) ImageOutputStream | output_ | 
| Constructor and Description | 
|---|
| BitFile(ImageOutputStream output,
       boolean blocks) | 
ImageOutputStream output_
byte[] buffer_
int index_
int bitsLeft_
boolean blocks_
public BitFile(ImageOutputStream output, boolean blocks)
output - destination for output datablocks - GIF LZW requires block counts for output datapublic void flush()
           throws IOException
IOExceptionpublic void writeBits(int bits,
             int numbits)
               throws IOException
IOExceptionCopyright © 2016 Open Microscopy Environment