public class BoundedInputStream extends InputStream
Based on the implementation from org.apache.commons.io.input.BoundedInputStream
| Constructor and Description |
|---|
BoundedInputStream(org.apache.flink.core.fs.FSDataInputStream delegate,
long endOffsetExclusive) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getEndOffsetExclusive() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setEndOffsetExclusive(long endOffsetExclusive) |
long |
skip(long n) |
String |
toString() |
public BoundedInputStream(org.apache.flink.core.fs.FSDataInputStream delegate,
long endOffsetExclusive)
throws IOException
IOExceptionpublic 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 reset()
throws IOException
reset in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic long getEndOffsetExclusive()
public void setEndOffsetExclusive(long endOffsetExclusive)
public boolean markSupported()
markSupported in class InputStreamCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.