Package com.example.common.stream
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
-
Method Details
-
print
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
-