Package org.apache.axiom.testutils.io
Class InstrumentedWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.apache.commons.io.output.ProxyWriter
-
- org.apache.axiom.testutils.io.InstrumentedWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable,InstrumentedStream
public final class InstrumentedWriter extends org.apache.commons.io.output.ProxyWriter implements InstrumentedStream
Writerwrapper that implementsInstrumentedStream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description InstrumentedWriter(Writer parent)
-
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.ProxyWriter
afterWrite, append, append, append, flush, handleIOException, write, write, write, write, write
-
Methods inherited from class java.io.Writer
nullWriter
-
-
-
-
Constructor Detail
-
InstrumentedWriter
public InstrumentedWriter(Writer parent)
-
-
Method Detail
-
beforeWrite
protected void beforeWrite(int n)
- Overrides:
beforeWritein classorg.apache.commons.io.output.ProxyWriter
-
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.ProxyWriter- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceInstrumentedStream
-
-