Class 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
    • Field Summary

      • Fields inherited from class com.inet.lib.io.FastByteArrayInputStream

        buf, count, mark, pos
    • 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, read, read
      • Methods inherited from class com.inet.lib.io.FastByteArrayInputStream

        close, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReportCacheInputStream

        public ReportCacheInputStream​(ReportCacheKey key,
                                      int timeout)
        Create new instance and fetch the first page.
        Parameters:
        key - the key for the report
        timeout - the timeout on access the cache API in milliseconds, 0 means unlimited wait.
        Since:
        17.0
    • Method Detail

      • nextChunk

        protected byte[] nextChunk()
        Specified by:
        nextChunk in class com.inet.lib.io.ChunkedInputStream