net.grinder.testutility
Class CountingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.grinder.testutility.CountingInputStream
- All Implemented Interfaces:
- Closeable
public final class CountingInputStream
- extends FilterInputStream
CountingInputStream
public CountingInputStream(InputStream in)
read
public int read()
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
getCount
public long getCount()
getCalls
public int getCalls()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2000-2012. All Rights Reserved.