Package org.exbin.auxiliary.paged_data
Interface SeekableStream
-
- All Known Implementing Classes:
ByteArrayDataInputStream,ByteArrayDataOutputStream,PagedDataInputStream,PagedDataOutputStream
public interface SeekableStreamInterface for seekable stream - allows to change current position.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetStreamSize()Returns length of the stream.voidseek(long position)Moves position in the stream to given position from the start of the stream.
-
-
-
Method Detail
-
seek
void seek(long position) throws java.io.IOException
Moves position in the stream to given position from the start of the stream.- Parameters:
position- target position- Throws:
java.io.IOException- if input/output error
-
getStreamSize
long getStreamSize()
Returns length of the stream.- Returns:
- length of the stream in bytes, -1 if unable to determine
-
-