Package com.inet.report.cache
Class ReportCacheInputStream
java.lang.Object
java.io.InputStream
com.inet.lib.io.FastByteArrayInputStream
com.inet.lib.io.ChunkedInputStream
com.inet.report.cache.ReportCacheInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ReportCacheInputStream
extends com.inet.lib.io.ChunkedInputStream
A stream result from a report in the cache.
- Since:
- 17.0
-
Field Summary
Fields inherited from class com.inet.lib.io.ChunkedInputStream
EMPTY_BYTES
Fields inherited from class com.inet.lib.io.FastByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
ConstructorDescriptionReportCacheInputStream
(ReportCacheKey key, int timeout) Create new instance and fetch the first page. -
Method Summary
Methods inherited from class com.inet.lib.io.ChunkedInputStream
available, mark, markSupported, nextChunkCount, read, read, skip
Methods inherited from class com.inet.lib.io.FastByteArrayInputStream
close, reset
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ReportCacheInputStream
Create new instance and fetch the first page.- Parameters:
key
- the key for the reporttimeout
- the timeout on access the cache API in milliseconds, 0 means unlimited wait.- Since:
- 17.0
-
-
Method Details
-
nextChunk
protected byte[] nextChunk()- Specified by:
nextChunk
in classcom.inet.lib.io.ChunkedInputStream
-