edu.stolaf.cs.wmrserver.testjob
Class CappedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.CountingInputStream
edu.stolaf.cs.wmrserver.testjob.CappedInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class CappedInputStream
- extends org.apache.commons.io.input.CountingInputStream
Fields inherited from class java.io.FilterInputStream |
in |
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 |
CappedInputStream
public CappedInputStream(java.io.InputStream input,
long maximumCount)
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