@Internal public class FSDataInputStreamWrapper extends FSDataInputStream implements WrappingProxy<FSDataInputStream>
FSDataInputStream.| Modifier and Type | Field and Description |
|---|---|
protected FSDataInputStream |
inputStream |
| Constructor and Description |
|---|
FSDataInputStreamWrapper(FSDataInputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos()
Gets the current position in the input stream.
|
FSDataInputStream |
getWrappedDelegate() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
seek(long desired)
Seek to the given offset from the start of the file.
|
long |
skip(long n) |
protected final FSDataInputStream inputStream
public FSDataInputStreamWrapper(FSDataInputStream inputStream)
public void seek(long desired)
throws IOException
FSDataInputStreamseek in class FSDataInputStreamdesired - the desired offsetIOException - Thrown if an error occurred while seeking inside the input stream.public long getPos()
throws IOException
FSDataInputStreamgetPos in class FSDataInputStreamIOException - Thrown if an I/O error occurred in the underlying stream
implementation while accessing the stream's position.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
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 readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic FSDataInputStream getWrappedDelegate()
getWrappedDelegate in interface WrappingProxy<FSDataInputStream>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.