Class Channels

java.lang.Object
com.github.rvesse.airline.Channels

public final class Channels extends Object
Channels provides methods for the cli output, error and input channels. The implementation of the channels can be changed with an implementation of ChannelFactory which must be registered via ServiceLoader. The default implementation is SystemChannelFactory.
  • Field Details

  • Constructor Details

    • Channels

      private Channels()
  • Method Details

    • output

      public static PrintStream output()
      Returns output channel.
      Returns:
      output channel
    • error

      public static PrintStream error()
      Returns error channel.
      Returns:
      error channel
    • input

      public static InputStream input()
      Returns input channel.
      Returns:
      input channel