Class InputStreamByteChunkProvider

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

    public class InputStreamByteChunkProvider
    extends CachingByteChunkProvider
    • Field Detail

      • is

        private java.io.BufferedInputStream is
      • close

        private boolean close
    • Constructor Detail

      • InputStreamByteChunkProvider

        public InputStreamByteChunkProvider​(java.io.InputStream is)
    • Method Detail

      • prepareChunk

        int prepareChunk​(byte[] chunk,
                         int bytesNeeded)
                  throws java.io.IOException
        Specified by:
        prepareChunk in class CachingByteChunkProvider
        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 CachingByteChunkProvider
        Throws:
        java.io.IOException