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

Method Index

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

Methods

 o 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.
 o tell
 public abstract long tell()
Obtain the current point in the stream.

 o 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