net.grinder.testutility
Class CountingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by net.grinder.testutility.CountingInputStream
All Implemented Interfaces:
Closeable

public final class CountingInputStream
extends FilterInputStream


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
CountingInputStream(InputStream in)
           
 
Method Summary
 int getCalls()
           
 long getCount()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 String toString()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CountingInputStream

public CountingInputStream(InputStream in)
Method Detail

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.