| java.lang.Object java.io.Reader com.Ostermiller.util.NoCloseReader
NoCloseReader | public class NoCloseReader extends Reader implements NoCloseStream(Code) | | A reader which a close method with no effect.
More information about this class is available from ostermiller.org.
This class is designed to wrap a normal reader
so that it can be passed to methods that read from 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 Reader | in The reader that is being protected.
All methods should be forwarded to it,
except for the close method, which should
do nothing. |
in | protected Reader in(Code) | | The reader 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 |
NoCloseReader | public NoCloseReader(Reader in)(Code) | | Protect a new reader.
Parameters: in - The reader that is being protected. since: ostermillerutils 1.01.00 |
markSupported | public boolean markSupported()(Code) | | |
|
|