- java.lang.Object
-
- com.github.rvesse.airline.SystemChannelFactory
-
- All Implemented Interfaces:
ChannelFactory
public final class SystemChannelFactory extends java.lang.Object implements ChannelFactory
Default implementation ofChannelFactory
which usesSystem.out
,System.err
andSystem.in
for the channels.
-
-
Constructor Summary
Constructors Constructor Description SystemChannelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.PrintStream
createError()
Returns error channel.java.io.InputStream
createInput()
Returns input channel.java.io.PrintStream
createOutput()
Returns output channel.
-
-
-
Method Detail
-
createOutput
public java.io.PrintStream createOutput()
Description copied from interface:ChannelFactory
Returns output channel.- Specified by:
createOutput
in interfaceChannelFactory
- Returns:
- output channel
-
createError
public java.io.PrintStream createError()
Description copied from interface:ChannelFactory
Returns error channel.- Specified by:
createError
in interfaceChannelFactory
- Returns:
- error channel
-
createInput
public java.io.InputStream createInput()
Description copied from interface:ChannelFactory
Returns input channel.- Specified by:
createInput
in interfaceChannelFactory
- Returns:
- input channel
-
-