Package org.exbin.xbup.core.stream
Interface XBSeekableStream
-
public interface XBSeekableStreamInterface for stream with seekable tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetPositionXB()Returns current position in stream.longgetStreamSizeXB()Returns length of stream.voidseekXB(long position)Moves position in stream to given position from the start of the stream.
-
-
-
Method Detail
-
seekXB
void seekXB(long position) throws java.io.IOExceptionMoves position in stream to given position from the start of the stream.- Parameters:
position- target position- Throws:
java.io.IOException- if input/output error
-
getPositionXB
long getPositionXB()
Returns current position in stream.- Returns:
- current position in stream, -1 if unable to determine
-
getStreamSizeXB
long getStreamSizeXB()
Returns length of stream.- Returns:
- length of stream in bytes, -1 if unable to determine
-
-