public class BoundedInputStream extends InputStream
Based on the implementation from org.apache.commons.io.input.BoundedInputStream
| 构造器和说明 |
|---|
BoundedInputStream(org.apache.flink.core.fs.FSDataInputStream delegate,
long endOffsetExclusive) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionpublic void mark(int readlimit)
mark 在类中 InputStreampublic long getEndOffsetExclusive()
public void setEndOffsetExclusive(long endOffsetExclusive)
public boolean markSupported()
markSupported 在类中 InputStreamCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.