Package org.apache.axiom.testutils.io
Class InstrumentedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.commons.io.input.ProxyInputStream
-
- org.apache.axiom.testutils.io.InstrumentedInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,InstrumentedStream
public final class InstrumentedInputStream extends org.apache.commons.io.input.ProxyInputStream implements InstrumentedStream
InputStreamwrapper that implementsInstrumentedStream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description InstrumentedInputStream(InputStream parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterRead(int n)voidclose()longgetCount()booleanisClosed()-
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, handleIOException, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
InstrumentedInputStream
public InstrumentedInputStream(InputStream parent)
-
-
Method Detail
-
afterRead
protected void afterRead(int n)
- Overrides:
afterReadin classorg.apache.commons.io.input.ProxyInputStream
-
getCount
public long getCount()
- Specified by:
getCountin interfaceInstrumentedStream
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceInstrumentedStream
-
-