Package org.restlet.engine.io
Class UnclosableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.restlet.engine.io.UnclosableInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream decorator to trap
close() calls so that the underlying
stream is not closed.- Author:
- Kevin Conaway
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
UnclosableInputStream
Constructor.- Parameters:
source- The source input stream.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-