net.sf.mmm.util.io.base
Class NonClosingInputStream.ClosedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.sf.mmm.util.io.base.FailingInputStream
          extended by 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.


Field Summary
protected static NonClosingInputStream.ClosedInputStream INSTANCE
          The singleton instance.
 
Constructor Summary
NonClosingInputStream.ClosedInputStream()
          The constructor.
 
Method Summary
protected  void causeException()
          This method is called by any method declared by InputStream.
 
Methods inherited from class net.sf.mmm.util.io.base.FailingInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

protected static final NonClosingInputStream.ClosedInputStream INSTANCE
The singleton instance.

Constructor Detail

NonClosingInputStream.ClosedInputStream

public NonClosingInputStream.ClosedInputStream()
The constructor.

Method Detail

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.