public final class RangeReader extends Reader
Constructor and Description |
---|
RangeReader(Reader r,
long offset,
long limit)
Creates new instance of range reader.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
long |
skip(long n) |
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
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public long skip(long n) throws IOException
skip
in class Reader
IOException
public boolean ready() throws IOException
ready
in class Reader
IOException
public boolean markSupported()
markSupported
in class Reader
public void mark(int readAheadLimit) throws IOException
mark
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
Copyright © 2020 JBoss by Red Hat. All rights reserved.