net.sf.mmm.util.io.base
Class NonClosingInputStream.ClosedInputStream
java.lang.Object
java.io.InputStream
net.sf.mmm.util.io.base.FailingInputStream
net.sf.mmm.util.io.base.NonClosingInputStream.ClosedInputStream
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- NonClosingInputStream
protected static class NonClosingInputStream.ClosedInputStream
- extends FailingInputStream
This inner class is a stream that will always throw a
StreamClosedException
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
protected static final NonClosingInputStream.ClosedInputStream INSTANCE
- The singleton instance.
NonClosingInputStream.ClosedInputStream
public NonClosingInputStream.ClosedInputStream()
- The constructor.
causeException
protected void causeException()
throws RuntimeException
- This method is called by any method declared by
InputStream
.
- Overrides:
causeException
in class FailingInputStream
- Throws:
RuntimeException
- is the actual error.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.