Class S3BitStoreService.S3LazyInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable
    Enclosing class:
    S3BitStoreService

    public class S3BitStoreService.S3LazyInputStream
    extends InputStream
    This inner class represent an InputStream that uses temporary files to represent chunk of the object downloaded from S3. When the input stream is read the class look first to the current chunk and download a new one once if the current one as been fully read. The class is responsible to close a chunk as soon as a new one is retrieved, the last chunk is closed when the input stream itself is closed or the last byte is read (the first of the two)