Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

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.

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

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


isRandomAccess

public 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.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.