|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream org.archive.io.SeekInputStream
public abstract class SeekInputStream
Base class for repositionable input streams.
Constructor Summary | |
---|---|
SeekInputStream()
|
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.InputStream |
---|
available, close, read, read, read, 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 SeekInputStream()
Method Detail |
---|
public void mark(int limit)
mark
in class java.io.InputStream
limit
- ignoredpublic void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
- if there is no mark, or if an IO error occurspublic boolean markSupported()
markSupported
in class java.io.InputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |