FileDocCategorySizeDatePackage
Positionable.javaAPI DocJMF 2.1.1e1449Mon May 12 12:20:42 BST 2003javax.media.protocol

Positionable

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

This is the JMF 1.0 Positionable interface.

version
1.11, 98/06/23.

Fields Summary
public static final int
RoundUp
public static final int
RoundDown
public static final int
RoundNearest
Constructors Summary
Methods Summary
public booleanisRandomAccess()
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.

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

public javax.media.TimesetPosition(javax.media.Time where, int rounding)
Set the position to the specified time. Returns the rounded position that was actually set.

param
time The new position in the stream.
param
round The rounding technique to be used: RoundUp, RoundDown, RoundNearest.
return
The actual position set.