Class MyBitInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.common.mylzw.MyBitInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class MyBitInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description MyBitInputStream(InputStream is, 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()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
MyBitInputStream
public MyBitInputStream(InputStream is, ByteOrder byteOrder)
-
-
Method Detail
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
setTiffLZWMode
public void setTiffLZWMode()
-
readBits
public int readBits(int sampleBits) throws IOException
- Throws:
IOException
-
flushCache
public void flushCache()
-
getBytesRead
public long getBytesRead()
-
-