public class HdfsPositionedUnderFileInputStream extends SeekableUnderFileInputStream
FSDataInputStream
API. This stream can be cached for reuse.in
Modifier and Type | Method and Description |
---|---|
int |
available() |
long |
getPos() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long position)
Moves the starting read position of the stream to the specified position which is relative to
the start of the stream.
|
long |
skip(long n) |
close, mark, reset
public int available() throws IOException
available
in class FilterInputStream
IOException
public long getPos() throws IOException
IOException
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] buffer, int offset, int length) throws IOException
read
in class FilterInputStream
IOException
public void seek(long position) throws IOException
Seekable
position
- the position to seek to, it must be between 0 and the end of the stream - 1IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
Copyright © 2023. All Rights Reserved.