Package org.apache.axiom.testutils.io
Class InstrumentedOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- org.apache.commons.io.output.ProxyOutputStream
-
- org.apache.axiom.testutils.io.InstrumentedOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,InstrumentedStream
public final class InstrumentedOutputStream extends org.apache.commons.io.output.ProxyOutputStream implements InstrumentedStream
OutputStreamwrapper that implementsInstrumentedStream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Constructor Summary
Constructors Constructor Description InstrumentedOutputStream(OutputStream proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeWrite(int n)voidclose()longgetCount()booleanisClosed()-
Methods inherited from class org.apache.commons.io.output.ProxyOutputStream
afterWrite, flush, handleIOException, write, write, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
InstrumentedOutputStream
public InstrumentedOutputStream(OutputStream proxy)
-
-
Method Detail
-
beforeWrite
protected void beforeWrite(int n)
- Overrides:
beforeWritein classorg.apache.commons.io.output.ProxyOutputStream
-
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.output.ProxyOutputStream- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceInstrumentedStream
-
-