public final class RangeInputStream extends FilterInputStream
in| 构造器和说明 |
|---|
RangeInputStream(InputStream in,
long offset,
long limit)
Creates new instance of range input stream.
|
public RangeInputStream(InputStream in, long offset, long limit) throws IOException
in - source streamoffset - offset of the rangelimit - length of the rangeIOException - on I/O exception during seeking to the specified offsetpublic int read()
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 FilterInputStreamIOExceptionpublic int available()
throws IOException
available 在类中 FilterInputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark 在类中 FilterInputStreampublic void reset()
throws IOException
reset 在类中 FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 FilterInputStreamCopyright © 2022. All rights reserved.