Class StreamCompressor.SeekableByteChannelCompressor

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

    private static final class StreamCompressor.SeekableByteChannelCompressor
    extends StreamCompressor
    • Field Detail

      • channel

        private final java.nio.channels.SeekableByteChannel channel
    • Constructor Detail

      • SeekableByteChannelCompressor

        public SeekableByteChannelCompressor​(java.util.zip.Deflater deflater,
                                             java.nio.channels.SeekableByteChannel channel)
    • Method Detail

      • writeOut

        protected final void writeOut​(byte[] data,
                                      int offset,
                                      int length)
                               throws java.io.IOException
        Specified by:
        writeOut in class StreamCompressor
        Throws:
        java.io.IOException