public class RangeInputStream extends FilterInputStream
Don't fuck with this class because Range requests are so bizarre, there's only one way to get them right.
in| Constructor and Description |
|---|
RangeInputStream(InputStream in,
long start) |
RangeInputStream(InputStream in,
long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
close, mark, markSupported, read, reset, skippublic RangeInputStream(InputStream in, long start) throws IOException
in - the original input streamstart - the start positionIOExceptionpublic RangeInputStream(InputStream in, long start, long end) throws IOException
in - the original input streamstart - the start positionend - the end positionIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionFilterInputStream.available()public int read()
throws IOException
read in class FilterInputStreamIOExceptionFilterInputStream.read()public int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionFilterInputStream.read(byte[], int, int)Copyright © 2011-2013 Johann Burkard. All Rights Reserved.