Class NoWrapAutoEndDeflaterOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class NoWrapAutoEndDeflaterOutputStream extends DeflaterOutputStream
A subclass of DeflaterOutputStream which defaults in a no-wrap Deflater instance and closes it when the stream is closed.
  • Constructor Details

    • NoWrapAutoEndDeflaterOutputStream

      public NoWrapAutoEndDeflaterOutputStream(@Nonnull OutputStream os, int level)
      Creates a new output stream with a default no-wrap compressor and buffer size, and the specified compression level.
      Parameters:
      os - the output stream
      level - the compression level (0-9)
  • Method Details