public class Printer extends java.lang.Object implements CSProcess
For convenience, Printer may be configured with prefix and postfix strings with which to decorate its output.
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
Merge
.Parallel
Constructor and Description |
---|
Printer(ChannelInput in)
Construct a new Printer with System.out as
its PrintStream and empty prefix and postfix strings.
|
Printer(ChannelInput in,
java.io.PrintStream printStream)
Construct a new Printer with empty prefix and postfix strings.
|
Printer(ChannelInput in,
java.io.PrintStream printStream,
java.lang.String prefix,
java.lang.String postfix)
Construct a new Printer.
|
Printer(ChannelInput in,
java.lang.String prefix,
java.lang.String postfix)
Construct a new Printer with System.out as
its PrintStream.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The main body of this process.
|
public Printer(ChannelInput in)
in
- the channel from which to readpublic Printer(ChannelInput in, java.lang.String prefix, java.lang.String postfix)
in
- the channel from which to readprefix
- the string to write in front of each objectpostfix
- the string to write after each objectpublic Printer(ChannelInput in, java.io.PrintStream printStream)
in
- the channel from which to readprintStream
- the stream to which to writepublic Printer(ChannelInput in, java.io.PrintStream printStream, java.lang.String prefix, java.lang.String postfix)
in
- he channel from which to readprintStream
- the stream to which to writeprefix
- the string to write in front of each objectpostfix
- the string to write after each objectCopyright © 1996–2022. All rights reserved.