Class SeekInputStream
java.lang.Object
java.io.InputStream
org.archive.io.SeekInputStream
- All Implemented Interfaces:
RepositionableStream,Closeable,AutoCloseable
- Direct Known Subclasses:
ArraySeekInputStream,BufferedSeekInputStream,OriginSeekInputStream,RandomAccessInputStream,ReplayInputStream,SafeSeekInputStream
Base class for repositionable input streams.
- Author:
- pjack
-
Constructor Details
-
SeekInputStream
public SeekInputStream()
-
-
Method Details
-
mark
public void mark(int limit) 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.- Overrides:
markin classInputStream- Parameters:
limit- ignored
-
reset
Resets this stream to its marked position.- Overrides:
resetin classInputStream- Throws:
IOException- if there is no mark, or if an IO error occurs
-
markSupported
public boolean markSupported()Returns true, since SeekInputStreams support mark/reset by default.- Overrides:
markSupportedin classInputStream- Returns:
- true
-