public final class Tail extends java.lang.Object implements CSProcess
Two inputs are needed before any output is produced but, thereafter, one output is produced for each input.
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
Output Channels | ||
out | java.lang.Object | The out Channel will send data of the same type as that sent down the in Channel. |
Identity
process for the copy loop:
public void run () { in.read (); // accept, but discard, the first item new Identity (in, out).run (); // copy the rest of the stream }
Modifier and Type | Field and Description |
---|---|
private ChannelInput |
in
The input Channel
|
private ChannelOutput |
out
The output Channel
|
Constructor and Description |
---|
Tail(ChannelInput in,
ChannelOutput out)
Construct a new Tail process with the input Channel in and the
output Channel out.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The main body of this process.
|
private ChannelInput in
private ChannelOutput out
public Tail(ChannelInput in, ChannelOutput out)
in
- the input Channelout
- the output Channel