Class LazyDecompressingInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class LazyDecompressingInputStream
    extends java.io.InputStream
    Lazy init InputStream wrapper.
    • Field Detail

      • wrappedStream

        private final java.io.InputStream wrappedStream
      • wrapperStream

        private java.io.InputStream wrapperStream
    • Constructor Detail

      • LazyDecompressingInputStream

        public LazyDecompressingInputStream​(java.io.InputStream wrappedStream,
                                            InputStreamFactory inputStreamFactory)
    • Method Detail

      • initWrapper

        private void initWrapper()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException
      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.InputStream
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class java.io.InputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.InputStream
        Throws:
        java.io.IOException