Class MyBitOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.commons.imaging.common.mylzw.MyBitOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class MyBitOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description MyBitOutputStream(OutputStream os, ByteOrder byteOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()intgetBytesWritten()voidwrite(int value)voidwriteBits(int value, int sampleBits)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
MyBitOutputStream
public MyBitOutputStream(OutputStream os, ByteOrder byteOrder)
-
-
Method Detail
-
write
public void write(int value) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
writeBits
public void writeBits(int value, int sampleBits) throws IOException- Throws:
IOException
-
flushCache
public void flushCache() throws IOException- Throws:
IOException
-
getBytesWritten
public int getBytesWritten()
-
-