public class PrinterInt
Prints each int from its input channel to a PrintStream.
For convenience, PrinterInt may be configured with prefix and postfix strings with which to decorate its output.
Input Channels | ||
---|---|---|
in | int | All channels in this package carry integers. |
Constructor and description |
---|
PrinterInt
(ChannelInputInt in) Construct a new PrinterInt with System.out as its PrintStream and empty prefix and postfix strings. |
PrinterInt
(ChannelInputInt in, String prefix, String postfix) Construct a new PrinterInt with System.out as its PrintStream. |
PrinterInt
(ChannelInputInt in, PrintStream printStream) Construct a new PrinterInt with empty prefix and postfix strings. |
PrinterInt
(ChannelInputInt in, PrintStream printStream, String prefix, String postfix) Construct a new PrinterInt. |
Construct a new PrinterInt with System.out as its PrintStream and empty prefix and postfix strings.
in
- the channel from which to readConstruct a new PrinterInt with System.out as its PrintStream.
in
- the channel from which to readprefix
- the string to write in front of each integerpostfix
- the string to write after each integerConstruct a new PrinterInt with empty prefix and postfix strings.
in
- the channel from which to readprintStream
- the stream to which to writeConstruct a new PrinterInt.
in
- he channel from which to readprintStream
- the stream to which to writeprefix
- the string to write in front of each integerpostfix
- the string to write after each integerJCSP for Java 1.8 generated 14-10-2016 by Jon Kerridge, Edinburgh Napier University - j dot kerridge at napier dot ac dot uk