Class MyBitInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.common.mylzw.MyBitInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class MyBitInputStream extends java.io.InputStream
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitCache
private int
bitsInCache
private java.nio.ByteOrder
byteOrder
private long
bytesRead
private java.io.InputStream
is
private boolean
tiffLZWMode
-
Constructor Summary
Constructors Constructor Description MyBitInputStream(java.io.InputStream is, java.nio.ByteOrder byteOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushCache()
long
getBytesRead()
int
read()
int
readBits(int sampleBits)
void
setTiffLZWMode()
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
setTiffLZWMode
public void setTiffLZWMode()
-
readBits
public int readBits(int sampleBits) throws java.io.IOException
- Throws:
java.io.IOException
-
flushCache
public void flushCache()
-
getBytesRead
public long getBytesRead()
-
-