Package gov.usgs.util

Class StreamUtils.UnclosableInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
gov.usgs.util.StreamUtils.UnclosableInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
StreamUtils

public static class StreamUtils.UnclosableInputStream extends 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 Details

    • UnclosableInputStream

      public UnclosableInputStream(InputStream in)
      Create a new UnclosableInputStream object.
      Parameters:
      in - the InputStream to wrap.
  • Method Details