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)
If there has been a number of sequential reads in a row,
we move to regular buffered reads.
|
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()
public int read()
read
in class FilterInputStream
public int read(byte[] b)
read
in class FilterInputStream
public int read(byte[] buffer, int offset, int length)
read
in class FilterInputStream
public void seek(long position)
Seekable
position
- the position to seek to, it must be between 0 and the end of the stream - 1public long skip(long n)
skip
in class FilterInputStream
public boolean markSupported()
markSupported
in class FilterInputStream
Copyright © 2023. All Rights Reserved.