public class HttpRangeInputStream
extends org.apache.hadoop.fs.FSInputStream
| Constructor and Description |
|---|
HttpRangeInputStream(String url) |
HttpRangeInputStream(String url,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos() |
int |
read() |
void |
seek(long targetPos) |
boolean |
seekToNewSource(long targetPos) |
mark, markSupported, read, read, reset, skippublic HttpRangeInputStream(String url) throws IOException
IOExceptionpublic HttpRangeInputStream(String url, int bufferSize) throws IOException
IOExceptionpublic void seek(long targetPos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2024. All rights reserved.