- java.lang.Object
-
- com.github.rvesse.airline.Channels
-
public final class Channels extends java.lang.Object
Channels provides methods for the cli output, error and input channels. The implementation of the channels can be changed with an implementation ofChannelFactory
which must be registered viaServiceLoader
. The default implementation isSystemChannelFactory
.
-
-
Field Summary
Fields Modifier and Type Field Description private static ChannelFactory
FACTORY
-
Constructor Summary
Constructors Modifier Constructor Description private
Channels()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.PrintStream
error()
Returns error channel.static java.io.InputStream
input()
Returns input channel.static java.io.PrintStream
output()
Returns output channel.
-
-
-
Field Detail
-
FACTORY
private static ChannelFactory FACTORY
-
-