Package gov.usgs.util
Class StreamUtils.UnclosableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- gov.usgs.util.StreamUtils.UnclosableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- StreamUtils
public static class StreamUtils.UnclosableOutputStream extends java.io.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 Summary
Constructors Constructor Description UnclosableOutputStream(java.io.OutputStream out)
Create a new UnclosableOutputStream object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Flush written content, but does not close stream.
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
Flush written content, but does not close stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.FilterOutputStream
- Throws:
java.io.IOException
-
-