|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader org.archive.io.SeekReader
public abstract class SeekReader
Base class for repositionable readers.
Field Summary |
---|
Fields inherited from class java.io.Reader |
---|
lock |
Constructor Summary | |
---|---|
SeekReader()
|
Method Summary | |
---|---|
void |
mark(int limit)
Marks the current position of the stream. |
boolean |
markSupported()
Returns true, since SeekInputStreams support mark/reset by default. |
void |
reset()
Resets this stream to its marked position. |
Methods inherited from class java.io.Reader |
---|
close, read, read, read, read, ready, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.io.RepositionableStream |
---|
position, position |
Constructor Detail |
---|
public SeekReader()
Method Detail |
---|
public void mark(int limit)
mark
in class java.io.Reader
limit
- ignoredpublic void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
- if there is no mark, or if an IO error occurspublic boolean markSupported()
markSupported
in class java.io.Reader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |