| java.lang.Object java.io.Writer com.Ostermiller.util.NoCloseWriter
NoCloseWriter | public class NoCloseWriter extends Writer implements NoCloseStream(Code) | | A writer 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 writer
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 Writer | out The writer that is being protected.
All methods should be forwarded to it,
except for the close method, which should
do nothing. |
out | protected Writer out(Code) | | The writer 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 |
NoCloseWriter | public NoCloseWriter(Writer out)(Code) | | Protect a new writer.
Parameters: out - The writer that is being protected. |
|
|