public class RangedInputStream extends InputStream
| Constructor and Description |
|---|
RangedInputStream(InputStream nativeInputStream,
long startRange,
long endRange) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int markVal) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buffer) |
int |
read(byte[] buffer,
int offset,
int size) |
void |
reset() |
long |
skip(long skipVal) |
public RangedInputStream(InputStream nativeInputStream, long startRange, long endRange) throws IOException
nativeInputStream - Input Stream.startRange - range startendRange - range endIOException - IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int size)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long skipVal)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int markVal)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2016 eXo Platform SAS. All Rights Reserved.