|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Pipe
Defines the interface for unidirectional media transfer between source and sink.
| Field Summary | |
|---|---|
static int |
INPUT
|
static int |
OUTPUT
|
| Method Summary | |
|---|---|
void |
connect(MediaSink sink)
Connects sinks to this pipe. |
void |
connect(MediaSource source)
Connects source to this pipe. |
void |
disconnect()
Disconnects source and sink. |
void |
disconnect(int termination)
Disconnects pipe. |
void |
start()
Starts transmission from source to sink if both are assigned. |
void |
stop()
Terminates transmission from source to sink if both are assigned. |
| Field Detail |
|---|
static final int INPUT
static final int OUTPUT
| Method Detail |
|---|
void connect(MediaSource source)
source - void connect(MediaSink sink)
sink - void disconnect(int termination)
source - the termonation for disconnect.
Pipe.INPUT disconnects source from this pipe if connected.
Pipe.OUTPUT disconnects sink from this pipe if connected.void disconnect()
void start()
source.start()
sink.start();
void stop()
source.stop()
sink.stop();
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||