Package org.infinispan.rest
Class CacheKeyInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.infinispan.rest.CacheKeyInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class CacheKeyInputStream extends InputStream
AnInputStream
that reads from aCacheStream
of byte[] and produces a JSON output.- Since:
- 10.0
-
-
Constructor Summary
Constructors Constructor Description CacheKeyInputStream(CacheStream<?> stream, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
int
read()
-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
CacheKeyInputStream
public CacheKeyInputStream(CacheStream<?> stream, int batchSize)
-
-
Method Detail
-
available
public int available()
- Overrides:
available
in classInputStream
-
read
public int read()
- Specified by:
read
in classInputStream
-
-