- java.lang.Object
-
- com.github.rvesse.airline.SystemChannelFactory
-
- All Implemented Interfaces:
ChannelFactory
public final class SystemChannelFactory extends java.lang.Object implements ChannelFactory
Default implementation ofChannelFactorywhich usesSystem.out,System.errandSystem.infor the channels.
-
-
Constructor Summary
Constructors Constructor Description SystemChannelFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.PrintStreamcreateError()Returns error channel.java.io.InputStreamcreateInput()Returns input channel.java.io.PrintStreamcreateOutput()Returns output channel.
-
-
-
Method Detail
-
createOutput
public java.io.PrintStream createOutput()
Description copied from interface:ChannelFactoryReturns output channel.- Specified by:
createOutputin interfaceChannelFactory- Returns:
- output channel
-
createError
public java.io.PrintStream createError()
Description copied from interface:ChannelFactoryReturns error channel.- Specified by:
createErrorin interfaceChannelFactory- Returns:
- error channel
-
createInput
public java.io.InputStream createInput()
Description copied from interface:ChannelFactoryReturns input channel.- Specified by:
createInputin interfaceChannelFactory- Returns:
- input channel
-
-