com.github.stephenc.javaisotools.sabre.io
Class LimitingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.stephenc.javaisotools.sabre.io.LimitingInputStream
- All Implemented Interfaces:
- Closeable
public class LimitingInputStream
- extends FilterInputStream
- Author:
- hartle
TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style -
Code Templates
|
Field Summary |
protected int |
limit
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
limit
protected int limit
LimitingInputStream
public LimitingInputStream(InputStream inputStream,
int limit)
setLimit
public void setLimit(int limit)
getLimit
public int getLimit()
read
public int read()
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buffer)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] buffer,
int position,
int length)
throws IOException
- Overrides:
read in class FilterInputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available in class FilterInputStream
- Throws:
IOException
Copyright © 2013. All Rights Reserved.