@Public public class InputStreamFSInputWrapper extends FSDataInputStream
InputStream and exposes it as FSDataInputStream.
seek(long) and getPos() are currently not supported.| Constructor and Description |
|---|
InputStreamFSInputWrapper(InputStream inStream) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPos()
Get the current position in the input stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long desired)
Seek to the given offset from the start of the file.
|
available, close, mark, markSupported, reset, skippublic InputStreamFSInputWrapper(InputStream inStream)
public void seek(long desired)
throws IOException
FSDataInputStreamseek in class FSDataInputStreamdesired - the desired offsetIOException - thrown if an error occurred while seeking inside the input streampublic long getPos()
throws IOException
FSDataInputStreamgetPos in class FSDataInputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.