Class MyBitOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.imaging.common.mylzw.MyBitOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private final ByteOrder
private int
private final OutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
actualWrite
(int value) void
int
void
write
(int value) void
writeBits
(int value, int sampleBits) Methods inherited from class java.io.OutputStream
close, flush, write, write
-
Field Details
-
os
-
byteOrder
-
bitsInCache
private int bitsInCache -
bitCache
private int bitCache -
bytesWritten
private int bytesWritten
-
-
Constructor Details
-
MyBitOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
writeBits
- Throws:
IOException
-
actualWrite
- Throws:
IOException
-
flushCache
- Throws:
IOException
-
getBytesWritten
public int getBytesWritten()
-