Class 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 of ChannelFactory which must be registered via ServiceLoader. The default implementation is SystemChannelFactory.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Channels

        private Channels()
    • Method Detail

      • output

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

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

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