javax.media.protocol
Interface 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.
Method Summary |
boolean |
isRandomAccess()
Find out if this source can be repositioned to any point in the stream. |
Time |
setPosition(Time where,
int rounding)
Set the position to the specified time. |
RoundUp
public static final int RoundUp
RoundDown
public static final int RoundDown
RoundNearest
public static final int RoundNearest
setPosition
public 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.
isRandomAccess
public 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.
Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.