FileDocCategorySizeDatePackage
Seekable.javaAPI DocJMF 2.1.1e1191Mon May 12 12:20:42 BST 2003javax.media.protocol

Seekable

public interface Seekable
A media object will implement this interface if it is capable of seeking to a particular position in the stream. The most common classes that implement Seekable are SourceStreams in DataSources and SourceTransferHandlers in DataSinks.

see
PullSourceStream
see
SourceTransferHandler
see
javax.media.DataSink
version
1.11, 98/06/23.

Fields Summary
Constructors Summary
Methods Summary
public booleanisRandomAccess()
Find out if this media object can position anywhere in the stream. If the stream is not random access, it can only be repositioned to the beginning.

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

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

param
where The position to seek to.
return
The new stream position.

public longtell()
Obtain the current point in the stream.