Package org.apache.axiom.testutils.io
Class InstrumentedReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- org.apache.commons.io.input.ProxyReader
-
- org.apache.axiom.testutils.io.InstrumentedReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable,InstrumentedStream
public final class InstrumentedReader extends org.apache.commons.io.input.ProxyReader implements InstrumentedStream
Readerwrapper that implementsInstrumentedStream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description InstrumentedReader(Reader 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.ProxyReader
beforeRead, handleIOException, mark, markSupported, read, read, read, read, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, transferTo
-
-
-
-
Constructor Detail
-
InstrumentedReader
public InstrumentedReader(Reader parent)
-
-
Method Detail
-
afterRead
protected void afterRead(int n)
- Overrides:
afterReadin classorg.apache.commons.io.input.ProxyReader
-
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.ProxyReader- Throws:
IOException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceInstrumentedStream
-
-