org.restlet.engine.io
Class UnclosableInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.restlet.engine.io.UnclosableInputStream
- All Implemented Interfaces:
- Closeable
public class UnclosableInputStream
- extends FilterInputStream
InputStream decorator to trap close()
calls so that the underlying
stream is not closed.
- Author:
- Kevin Conaway
Method Summary |
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnclosableInputStream
public UnclosableInputStream(InputStream source)
- Constructor.
- Parameters:
source
- The source input stream.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
Copyright © 2005-2013 Restlet.