Package org.apache.commons.imaging.icc
Class CachingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.imaging.icc.CachingInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
class CachingInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description CachingInputStream(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
byte[]
getCache()
int
read()
-
-
-
Method Detail
-
getCache
public byte[] getCache()
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-