| java.lang.Object java.io.OutputStream com.Ostermiller.util.NoCloseOutputStream
NoCloseOutputStream | public class NoCloseOutputStream extends OutputStream implements NoCloseStream(Code) | | An output stream with a close method with no effect.
More information about this class is available from ostermiller.org.
This class is designed to wrap a normal output stream
so that it can be passed to methods that write to it
and may erroneously close it. This class is a workaround
when the method cannot be modified because it is in a
library.
author: Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities since: ostermillerutils 1.01.00 |
Field Summary | |
protected OutputStream | out The output stream that is being protected.
All methods should be forwarded to it,
except for the close method, which should
do nothing. |
Method Summary | |
public void | close() Has no effect. | public void | flush() | public void | reallyClose() | public void | write(int b) | public void | write(byte[] b) | public void | write(byte[] b, int off, int len) |
out | protected OutputStream out(Code) | | The output stream that is being protected.
All methods should be forwarded to it,
except for the close method, which should
do nothing. The reallyClose method should
actually close this stream.
since: ostermillerutils 1.01.00 |
NoCloseOutputStream | public NoCloseOutputStream(OutputStream out)(Code) | | Protect a new output stream.
Parameters: out - The output stream that is being protected. since: ostermillerutils 1.01.00 |
|
|