org.crsh.util
Class SubInputStream
java.lang.Object
java.io.InputStream
org.crsh.util.SubInputStream
- All Implemented Interfaces:
- Closeable
public class SubInputStream
- extends InputStream
A stream that reads a portion of a delegate input stream.
The impl is very basic and could be improved but it is enough at the moment.
- Version:
- $Revision$
- Author:
- Julien Viet
Method Summary |
int |
read()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
private final InputStream in
- .
length
private final long length
- .
count
private long count
- .
SubInputStream
public SubInputStream(InputStream in,
long length)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.