Class DummySink

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class DummySink extends DeflaterOutputStream
The Servlet to exercise what's available.
  • Constructor Details

    • DummySink

      public DummySink(OutputStream out, Deflater def, int size)
      Creates a new output stream with the specified compressor and buffer size.
      Parameters:
      out - the output stream
      def - the compressor ("deflater")
      Throws:
      IllegalArgumentException - if size is <= 0
    • DummySink

      public DummySink(OutputStream out, Deflater def)
      Creates a new output stream with the specified compressor and a default buffer size.
      Parameters:
      out - the output stream
      def - the compressor ("deflater")
    • DummySink

      public DummySink(OutputStream out)
      Creates a new output stream with a defaul compressor and buffer size.
  • Method Details