Class DontCloseOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class DontCloseOutputStream
    extends FilterOutputStream
    Wraps an OutputStream to protect it from close calls. This is useful for at least GZIPOutputStream where the native resources of the GZIPOutputStream need to be released using the close call while the underlying stream is left intact.
    Author:
    AO Industries, Inc.