net.sf.mmm.util.io.base
Class NonClosingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.sf.mmm.util.io.base.NonClosingInputStream
- All Implemented Interfaces:
- Closeable
public class NonClosingInputStream
- extends FilterInputStream
This is an NonClosingInputStream.ClosedInputStream
that wraps an existing NonClosingInputStream.ClosedInputStream
and
prevents closing
the original NonClosingInputStream.ClosedInputStream
.
This can be useful as workaround for bugs like 6539065.
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
Method Summary |
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonClosingInputStream
public NonClosingInputStream(InputStream delegate)
- The constructor.
- Parameters:
delegate
- is the NonClosingInputStream.ClosedInputStream
to adapt.
close
public void close()
throws IOException
-
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterInputStream
- Throws:
IOException
Copyright © 2001-2010 mmm-Team. All Rights Reserved.