public class RangeInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
RangeInputStream(java.io.InputStream parent,
long size)
InputStream that will provide only the specified size of the provided InputStream
from the position already provided on the parent stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
public RangeInputStream(java.io.InputStream parent,
long size)
parent - The parent InputStream where the data is coming from.size - Size of bytes to read from.public final int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic final int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException