Package gov.usgs.util
Class StreamUtils.UnclosableInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- gov.usgs.util.StreamUtils.UnclosableInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- StreamUtils
public static class StreamUtils.UnclosableInputStream extends java.io.FilterInputStream
An InputStream that ignores calls to close. Used for methods that automatically close a stream at EOF, even though it is undesirable for the stream to be closed, such as when using a ZipInputStream.
-
-
Constructor Summary
Constructors Constructor Description UnclosableInputStream(java.io.InputStream in)
Create a new UnclosableInputStream object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Does not close stream.-
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
-
-