Class ByteChunkProvider

    • Field Detail

      • offset

        protected long offset
      • chunkSize

        protected int chunkSize
    • Constructor Detail

      • ByteChunkProvider

        public ByteChunkProvider()
    • Method Detail

      • isAvailable

        public abstract boolean isAvailable()
      • writeChunk

        public void writeChunk​(java.io.OutputStream os)
      • writeChunks

        public void writeChunks​(Buffer<?> buffer,
                                int nrChunks)
      • writeChunk

        public void writeChunk​(Buffer<?> buffer)
      • getOffset

        public long getOffset()
      • getLastWriteSize

        public int getLastWriteSize()
      • getChunk

        protected abstract int getChunk​(byte[] chunk)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • bytesLeft

        public abstract int bytesLeft()
      • close

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