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 int
available()
void
close()
int
read()
-
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:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
-