protected static class NonClosingInputStream.ClosedInputStream extends FailingInputStream
StreamClosedException
.Modifier and Type | Field and Description |
---|---|
protected static NonClosingInputStream.ClosedInputStream |
INSTANCE
The singleton instance.
|
Constructor and Description |
---|
ClosedInputStream()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
causeException()
This method is called by any method declared by
InputStream . |
available, close, mark, markSupported, read, read, read, reset, skip
protected static final NonClosingInputStream.ClosedInputStream INSTANCE
protected void causeException() throws RuntimeException
FailingInputStream
InputStream
.causeException
in class FailingInputStream
RuntimeException
- is the actual error.Copyright © 2001–2016 mmm-Team. All rights reserved.