Interface StreamIO

All Known Implementing Classes:
ConsoleStreamIO

public interface StreamIO
The StreamIO interface defines methods for printing text and reading input from a stream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    print(String text)
    Print the specified text to the stream.
    Read input from the stream.
  • Method Details

    • print

      void print(String text)
      Print the specified text to the stream.
      Parameters:
      text - the text to print
    • read

      String read()
      Read input from the stream.
      Returns:
      the input read from the stream