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:
java.io.Closeable
,java.lang.AutoCloseable
public class ReportCacheInputStream extends com.inet.lib.io.ChunkedInputStream
A stream result from a report in the cache.- Since:
- 17.0
-
-
Constructor Summary
Constructors Constructor Description ReportCacheInputStream(ReportCacheKey key, int timeout)
Create new instance and fetch the first page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
nextChunk()
-
Methods inherited from class com.inet.lib.io.ChunkedInputStream
available, mark, markSupported, nextChunkCount, read, read, skip
-
-
-
-
Constructor Detail
-
ReportCacheInputStream
public ReportCacheInputStream(ReportCacheKey key, int timeout)
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
-
-