Package gov.usgs.util

Class StreamUtils.UnclosableOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
gov.usgs.util.StreamUtils.UnclosableOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Enclosing class:
StreamUtils

public static class StreamUtils.UnclosableOutputStream extends FilterOutputStream
An OutputStream that ignores calls to close. Used for methods that automatically close a stream, even though it is undesirable for the stream to be closed, such as when using a ZipOutputStream.
  • Constructor Details

    • UnclosableOutputStream

      public UnclosableOutputStream(OutputStream out)
      Create a new UnclosableOutputStream object.
      Parameters:
      out - the OutputStream to wrap.
  • Method Details