public abstract class AbstractInputStreamMux extends AbstractMultiplexer
inputFormats, numTracks, outputContentDescriptorBUFFER_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, setInputFormatgetName, resetaddControl, getControl, getControls, removeControlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControl, getControlspublic AbstractInputStreamMux(ContentDescriptor contentDescriptor)
protected java.io.OutputStream getOutputStream()
protected InputStreamPushDataSource getDataOutputNoInit()
public DataSource getDataOutput()
public abstract Format[] getSupportedInputFormats()
public void close()
close in interface PlugInclose in class AbstractPlugInpublic void open()
throws ResourceUnavailableException
open in interface PlugInopen in class AbstractPlugInResourceUnavailableExceptionpublic 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.IOExceptionpublic int setNumTracks(int numTracks)
setNumTracks in interface MultiplexersetNumTracks in class AbstractMultiplexerprotected 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