org.restlet.engine.io
Class UnclosableOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.restlet.engine.io.UnclosableOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class UnclosableOutputStream
- extends FilterOutputStream
OutputStream decorator to trap close() calls so that the decorated stream
does not get 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 |
UnclosableOutputStream
public UnclosableOutputStream(OutputStream source)
- Constructor.
- Parameters:
source
- The decorated source stream.
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException
Copyright © 2005-2013 Restlet.