org.apache.jackrabbit.test.api.util
Class InputStreamWrapper
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamWrapper
public InputStreamWrapper(InputStream in)
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.