net.sf.fmj.media.parser
Class RawPushBufferParser
java.lang.Object
net.sf.fmj.media.AbstractControls
net.sf.fmj.media.AbstractPlugIn
net.sf.fmj.media.AbstractDemultiplexer
net.sf.fmj.media.parser.RawPushBufferParser
- All Implemented Interfaces:
- Controls, Demultiplexer, Duration, MediaHandler, PlugIn
public class RawPushBufferParser
- extends AbstractDemultiplexer
Raw Demultiplexer that reads from a PushBufferDataSource and passes the data unmodified to the
output.
This Demux doesn't really do much - since the stream does all the work of providing the buffers.
It may be that similar sun classes actually do something meaningful.
Very similar code could be used for PullBufferDataSource.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawPushBufferParser
public RawPushBufferParser()
getSupportedInputContentDescriptors
public ContentDescriptor[] getSupportedInputContentDescriptors()
- Specified by:
getSupportedInputContentDescriptors
in interface Demultiplexer
- Specified by:
getSupportedInputContentDescriptors
in class AbstractDemultiplexer
getTracks
public Track[] getTracks()
throws java.io.IOException,
BadHeaderException
- Specified by:
getTracks
in interface Demultiplexer
- Specified by:
getTracks
in class AbstractDemultiplexer
- Throws:
java.io.IOException
BadHeaderException
setSource
public void setSource(DataSource source)
throws java.io.IOException,
IncompatibleSourceException
- Specified by:
setSource
in interface MediaHandler
- Specified by:
setSource
in class AbstractDemultiplexer
- Throws:
java.io.IOException
IncompatibleSourceException
start
public void start()
throws java.io.IOException
- Specified by:
start
in interface Demultiplexer
- Overrides:
start
in class AbstractDemultiplexer
- Throws:
java.io.IOException
stop
public void stop()
- Specified by:
stop
in interface Demultiplexer
- Overrides:
stop
in class AbstractDemultiplexer