javax.media.protocol
Interface Seekable


public interface Seekable

A SourceStream will implement this interface if it is capable of seeking to a particular position in the stream.

Version:
1.6, 97/08/23.
See Also:
SourceStream

Method Summary
 boolean isRandomAccess()
          Find out if this source can position anywhere in the stream.
 long seek(long where)
          Seek to the specified point in the stream.
 long tell()
          Obtain the current point in the stream.
 

Method Detail

seek

long seek(long where)
Seek to the specified point in the stream.

Parameters:
where - The position to seek to.
Returns:
The new stream position.

tell

long tell()
Obtain the current point in the stream.


isRandomAccess

boolean isRandomAccess()
Find out if this source can position anywhere in the stream. If the stream is not random access, it can only be repositioned to the beginning.

Returns:
Returns true if the stream is random access, false if the stream can only be reset to the beginning.


Copyright © 2011. All Rights Reserved.