org.apache.axiom.testutils.io
Class CloseSensorInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.commons.io.input.ProxyInputStream
              extended by org.apache.axiom.testutils.io.CloseSensorInputStream
All Implemented Interfaces:
java.io.Closeable

public class CloseSensorInputStream
extends org.apache.commons.io.input.ProxyInputStream

InputStream wrapper that remembers if InputStream.close() has been called.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
CloseSensorInputStream(java.io.InputStream parent)
           
 
Method Summary
 void close()
           
 boolean isClosed()
           
 
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, 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
 

Constructor Detail

CloseSensorInputStream

public CloseSensorInputStream(java.io.InputStream parent)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class org.apache.commons.io.input.ProxyInputStream
Throws:
java.io.IOException

isClosed

public boolean isClosed()


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.