public class SeekableFSInputStream
extends org.apache.hadoop.fs.FSInputStream
| Constructor and Description |
|---|
SeekableFSInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPos() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
boolean |
seekToNewSource(long arg0) |
available, mark, markSupported, read, reset, skippublic SeekableFSInputStream(InputStream in)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic boolean seekToNewSource(long arg0)
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 InputStreamIOException