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
final 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 intavailable()voidclose()byte[]getCache()intread()
-
-
-
Method Detail
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
getCache
public byte[] getCache()
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
-