All Packages Class Hierarchy This Package Previous Next Index
Interface javax.media.protocol.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
-
isRandomAccess()
- Find out if this source can position anywhere in the
stream.
-
seek(long)
- Seek to the specified point in the stream.
-
tell()
- Obtain the current point in the stream.
seek
public abstract 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
public abstract long tell()
- Obtain the current point in the stream.
isRandomAccess
public abstract 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.
All Packages Class Hierarchy This Package Previous Next Index