Class DefaultTalker

  • All Implemented Interfaces:
    Talker

    public class DefaultTalker
    extends java.lang.Object
    implements Talker
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultTalker()  
      DefaultTalker​(java.io.InputStream in, java.io.PrintStream out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String exchange​(java.lang.String message)
      Send some output to the user and get some input back
      • Methods inherited from class java.lang.Object

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

      • DefaultTalker

        public DefaultTalker()
      • DefaultTalker

        public DefaultTalker​(java.io.InputStream in,
                             java.io.PrintStream out)
    • Method Detail

      • exchange

        public java.lang.String exchange​(java.lang.String message)
        Send some output to the user and get some input back
        Specified by:
        exchange in interface Talker
        Parameters:
        message - output to be sent to the user
        Returns:
        the user's response