| java.lang.Object java.io.InputStream com.Ostermiller.util.NoCloseInputStream
NoCloseInputStream | public class NoCloseInputStream extends InputStream implements NoCloseStream(Code) | | An input 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 input stream
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 InputStream | in The input stream that is being protected.
All methods should be forwarded to it,
except for the close method, which should
do nothing. |
in | protected InputStream in(Code) | | The input 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 |
NoCloseInputStream | public NoCloseInputStream(InputStream in)(Code) | | Protect a new input stream.
Parameters: in - The input stream that is being protected. since: ostermillerutils 1.01.00 |
mark | public void mark(int readlimit)(Code) | | |
markSupported | public boolean markSupported()(Code) | | |
|
|