edu.stolaf.cs.wmrserver.testjob
Class CappedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.commons.io.input.ProxyInputStream
              extended by org.apache.commons.io.input.CountingInputStream
                  extended by edu.stolaf.cs.wmrserver.testjob.CappedInputStream
All Implemented Interfaces:
java.io.Closeable

public class CappedInputStream
extends org.apache.commons.io.input.CountingInputStream


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
CappedInputStream(java.io.InputStream input, long maximumCount)
           
 
Method Summary
 int read()
           
 int read(byte[] buffer)
           
 int read(byte[] buffer, int offset, int length)
           
 
Methods inherited from class org.apache.commons.io.input.CountingInputStream
afterRead, getByteCount, getCount, resetByteCount, resetCount, skip
 
Methods inherited from class org.apache.commons.io.input.ProxyInputStream
available, beforeRead, close, handleIOException, mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CappedInputStream

public CappedInputStream(java.io.InputStream input,
                         long maximumCount)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class org.apache.commons.io.input.ProxyInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer)
         throws java.io.IOException
Overrides:
read in class org.apache.commons.io.input.ProxyInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int offset,
                int length)
         throws java.io.IOException
Overrides:
read in class org.apache.commons.io.input.ProxyInputStream
Throws:
java.io.IOException