Module com.gluonhq.cloudlink.client
Class CachingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.gluonhq.impl.cloudlink.client.data.function.CachingInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CachingInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description CachingInputStream(InputStream in, OutputStream cache)CachingInputStream(InputStream in, OutputStream cache, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()intread()-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
CachingInputStream
public CachingInputStream(InputStream in, OutputStream cache)
-
CachingInputStream
public CachingInputStream(InputStream in, OutputStream cache, int bufferSize)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
-