All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javax.media.protocol.Positionable

public interface Positionable
A DataSource implements the Positionable interface if it supports changing the media position within the stream.

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

Variable Index

 o RoundDown
 o RoundNearest
 o RoundUp

Method Index

 o isRandomAccess()
Find out if this source can be repositioned to any point in the stream.
 o setPosition(Time, int)
Set the position to the specified time.

Variables

 o RoundUp
 public static final int RoundUp
 o RoundDown
 public static final int RoundDown
 o RoundNearest
 public static final int RoundNearest

Methods

 o setPosition
 public abstract Time setPosition(Time where,
                                  int rounding)
Set the position to the specified time. Returns the rounded position that was actually set.

Parameters:
time - The new position in the stream.
round - The rounding technique to be used: RoundUp, RoundDown, RoundNearest.
Returns:
The actual position set.
 o isRandomAccess
 public abstract boolean isRandomAccess()
Find out if this source can be repositioned to any point in the stream. If not, the source can only be repositioned to the beginning of the stream.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index