Class LazyInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class LazyInputStream
    extends InputStream
    Lazy input stream.

    Delaying opening stream from underlying virtual file as long as possible. Won't be opened if not used at all.

    Synchronization is very simplistic, as it's highly unlikely there will be a lot of concurrent requests.

    Author:
    Ales Justin