org.apache.jackrabbit.test.api.util
Class InputStreamWrapper

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.jackrabbit.test.api.util.InputStreamWrapper
All Implemented Interfaces:
Closeable

public class InputStreamWrapper
extends FilterInputStream

Helper class which allows to check whether the #close() method has been called on this stream.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
InputStreamWrapper(InputStream in)
           
 
Method Summary
 void close()
           
 boolean isClosed()
           
 
Methods inherited from class java.io.FilterInputStream
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

InputStreamWrapper

public InputStreamWrapper(InputStream in)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException

isClosed

public boolean isClosed()


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