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