Class ByteProviderInputStream.ClosingInputStream

    • Constructor Detail

      • ClosingInputStream

        public ClosingInputStream​(ByteProvider provider)
        Creates an InputStream that reads from a ByteProvider, that DOES close() the underlying ByteProvider when closed itself.

        Parameters:
        provider - the ByteProvider to read from (and close)
    • Method Detail

      • 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 ByteProviderInputStream
        Throws:
        java.io.IOException