public abstract class AbstractInputStreamMux extends AbstractMultiplexer
inputFormats, numTracks, outputContentDescriptor
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
Constructor and Description |
---|
AbstractInputStreamMux(ContentDescriptor contentDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected InputStreamPushDataSource |
createInputStreamPushDataSource(ContentDescriptor outputContentDescriptor,
int numTracks,
java.io.InputStream[] inputStreams) |
protected void |
doProcess(Buffer buffer,
int trackID,
java.io.OutputStream os) |
DataSource |
getDataOutput() |
protected InputStreamPushDataSource |
getDataOutputNoInit()
Not a JMF public API method, just a way for subclasses to get the data output to do notifications.
|
protected java.io.OutputStream |
getOutputStream() |
abstract Format[] |
getSupportedInputFormats() |
ContentDescriptor[] |
getSupportedOutputContentDescriptors(Format[] inputs) |
void |
open() |
int |
process(Buffer buffer,
int trackID) |
int |
setNumTracks(int numTracks) |
protected void |
writeInt(java.io.OutputStream os,
long value) |
setContentDescriptor, setInputFormat
getName, reset
addControl, getControl, getControls, removeControl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControl, getControls
public AbstractInputStreamMux(ContentDescriptor contentDescriptor)
protected java.io.OutputStream getOutputStream()
protected InputStreamPushDataSource getDataOutputNoInit()
public DataSource getDataOutput()
public abstract Format[] getSupportedInputFormats()
public void close()
close
in interface PlugIn
close
in class AbstractPlugIn
public void open() throws ResourceUnavailableException
open
in interface PlugIn
open
in class AbstractPlugIn
ResourceUnavailableException
public ContentDescriptor[] getSupportedOutputContentDescriptors(Format[] inputs)
public int process(Buffer buffer, int trackID)
protected void doProcess(Buffer buffer, int trackID, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int setNumTracks(int numTracks)
setNumTracks
in interface Multiplexer
setNumTracks
in class AbstractMultiplexer
protected InputStreamPushDataSource createInputStreamPushDataSource(ContentDescriptor outputContentDescriptor, int numTracks, java.io.InputStream[] inputStreams)
protected void writeInt(java.io.OutputStream os, long value) throws java.io.IOException
java.io.IOException