Class DontCloseOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    @Deprecated
    public class DontCloseOutputStream
    extends FilterOutputStream
    Deprecated.
    Please use NoCloseOutputStream instead
    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.