public class HdfsPositionedUnderFileInputStream extends SeekableUnderFileInputStream implements PositionReader
FSDataInputStream API.
This stream can be cached for reuse.| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
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.
|
int |
readInternal(long position,
ReadTargetBuffer buffer,
int length) |
void |
seek(long position) |
long |
skip(long n) |
public int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic long getPos()
getPos in interface Positionedpublic int read()
read in class java.io.FilterInputStreampublic int read(byte[] b)
read in class java.io.FilterInputStreampublic int read(byte[] buffer,
int offset,
int length)
read in class java.io.FilterInputStreampublic long skip(long n)
skip in class java.io.FilterInputStreampublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic int readInternal(long position,
ReadTargetBuffer buffer,
int length)
throws java.io.IOException
readInternal in interface PositionReaderjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface PositionReaderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionCopyright © 2023. All Rights Reserved.