public class StreamCopyPushDataSource extends PushDataSource
DURATION_UNBOUNDED, DURATION_UNKNOWN| Constructor and Description |
|---|
StreamCopyPushDataSource(ContentDescriptor outputContentDescriptor,
int numTracks,
java.io.InputStream[] inputStreams,
Format[] inputFormats) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
disconnect() |
java.lang.String |
getContentType() |
java.lang.Object |
getControl(java.lang.String controlType) |
java.lang.Object[] |
getControls() |
Time |
getDuration() |
PushSourceStream[] |
getStreams() |
void |
notifyDataAvailable(int track) |
void |
start() |
void |
stop() |
void |
waitUntilFinished() |
protected void |
write(java.io.InputStream in,
java.io.OutputStream out,
int track) |
getLocator, initCheck, setLocatorpublic StreamCopyPushDataSource(ContentDescriptor outputContentDescriptor, int numTracks, java.io.InputStream[] inputStreams, Format[] inputFormats)
public PushSourceStream[] getStreams()
getStreams in class PushDataSourcepublic void connect()
throws java.io.IOException
connect in class DataSourcejava.io.IOExceptionpublic void notifyDataAvailable(int track)
public void disconnect()
disconnect in class DataSourcepublic java.lang.String getContentType()
getContentType in class DataSourcepublic java.lang.Object getControl(java.lang.String controlType)
getControl in interface ControlsgetControl in class DataSourcepublic java.lang.Object[] getControls()
getControls in interface ControlsgetControls in class DataSourcepublic Time getDuration()
getDuration in interface DurationgetDuration in class DataSourcepublic void start()
throws java.io.IOException
start in class DataSourcejava.io.IOExceptionpublic void stop()
throws java.io.IOException
stop in class DataSourcejava.io.IOExceptionpublic void waitUntilFinished()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionprotected void write(java.io.InputStream in,
java.io.OutputStream out,
int track)
throws java.io.IOException
java.io.IOException