public final class RangeReader extends Reader
public RangeReader(Reader r, long offset, long limit) throws IOException
r - source readeroffset - offset of the rangelimit - length of the rangeIOException - on I/O exception during seeking to the specified offsetpublic int read()
throws IOException
read 在类中 ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read 在类中 ReaderIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 ReaderIOExceptionpublic boolean ready()
throws IOException
ready 在类中 ReaderIOExceptionpublic boolean markSupported()
markSupported 在类中 Readerpublic void mark(int readAheadLimit)
throws IOException
mark 在类中 ReaderIOExceptionpublic void reset()
throws IOException
reset 在类中 ReaderIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 ReaderIOExceptionCopyright © 2022. All rights reserved.