Class CachingByteChunkProvider

    • Constructor Detail

      • CachingByteChunkProvider

        CachingByteChunkProvider()
    • Method Detail

      • prepareChunk

        abstract int prepareChunk​(byte[] chunk,
                                  int bytesNeeded)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getChunk

        protected int getChunk​(byte[] chunk)
                        throws java.io.IOException
        Specified by:
        getChunk in class ByteChunkProvider
        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 ByteChunkProvider
        Throws:
        java.io.IOException