| java.lang.Object java.io.InputStream org.archive.io.SeekInputStream
All known Subclasses: org.archive.io.ArraySeekInputStream, org.archive.io.ReplayInputStream, org.archive.io.BufferedSeekInputStream, org.archive.io.SafeSeekInputStream, org.archive.io.OriginSeekInputStream, org.archive.io.RandomAccessInputStream, org.archive.util.ms.BlockInputStream,
SeekInputStream | abstract public class SeekInputStream extends InputStream implements RepositionableStream(Code) | | Base class for repositionable input streams.
author: pjack |
Method Summary | |
public void | mark(int limit) Marks the current position of the stream. | public boolean | markSupported() Returns true, since SeekInputStreams support mark/reset by default. | public void | reset() Resets this stream to its marked position. |
mark | public void mark(int limit)(Code) | | Marks the current position of the stream. The limit parameter is
ignored; the mark will remain valid until reset is called or the
stream is closed.
Parameters: limit - ignored |
markSupported | public boolean markSupported()(Code) | | Returns true, since SeekInputStreams support mark/reset by default.
true |
reset | public void reset() throws IOException(Code) | | Resets this stream to its marked position.
throws: IOException - if there is no mark, or if an IO error occurs |
|
|