Class SystemChannelFactory

  • All Implemented Interfaces:
    ChannelFactory

    public final class SystemChannelFactory
    extends java.lang.Object
    implements ChannelFactory
    Default implementation of ChannelFactory which uses System.out, System.err and System.in for the channels.
    • 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.
      • Methods inherited from class java.lang.Object

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

      • SystemChannelFactory

        public SystemChannelFactory()
    • Method Detail

      • createOutput

        public java.io.PrintStream createOutput()
        Description copied from interface: ChannelFactory
        Returns output channel.
        Specified by:
        createOutput in interface ChannelFactory
        Returns:
        output channel
      • createError

        public java.io.PrintStream createError()
        Description copied from interface: ChannelFactory
        Returns error channel.
        Specified by:
        createError in interface ChannelFactory
        Returns:
        error channel
      • createInput

        public java.io.InputStream createInput()
        Description copied from interface: ChannelFactory
        Returns input channel.
        Specified by:
        createInput in interface ChannelFactory
        Returns:
        input channel