FileDocCategorySizeDatePackage
RawParser.javaAPI DocJMF 2.1.1e1730Mon May 12 12:20:52 BST 2003com.sun.media.parser

RawParser

public abstract class RawParser extends BasicPlugIn implements Demultiplexer

Fields Summary
static final String
NAME
protected DataSource
source
ContentDescriptor[]
supported
Constructors Summary
public RawParser()

	supported = new ContentDescriptor[1];
	supported[0] = new ContentDescriptor(ContentDescriptor.RAW);
    
Methods Summary
public java.lang.Object[]getControls()

	return source.getControls(); 
    
public javax.media.TimegetDuration()

	return (source == null ? Duration.DURATION_UNKNOWN :  source.getDuration());
    
public javax.media.TimegetMediaTime()

	return Time.TIME_UNKNOWN;
    
public java.lang.StringgetName()


       
	return NAME;
    
public javax.media.protocol.ContentDescriptor[]getSupportedInputContentDescriptors()
Lists the possible input formats supported by this plug-in.

	return supported;
    
public javax.media.Track[]getTracks()

	return null;
    
public booleanisPositionable()

	return source instanceof Positionable;
    
public booleanisRandomAccess()

	return source instanceof Positionable &&
	    ((Positionable)source).isRandomAccess();
    
public voidreset()
Resets the state of the plug-in. Typically at end of media or when media is repositioned.

    
public javax.media.TimesetPosition(javax.media.Time when, int round)

	if (source instanceof Positionable)
	    return ((Positionable)source).setPosition(when, round);
	return when;