public class OutputMemoryTerminal extends Object implements IOutputTerminal
Provides a memory stream as a terminal output destination.
Constructor and Description |
---|
OutputMemoryTerminal() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Returns input stream to read the data that was written.
|
OutputStream |
getStream()
Gets the memory stream.
|
BufferedWriter |
getWriter()
Gets the writer for the output terminal.
|
public BufferedWriter getWriter()
Gets the writer for the output terminal.
getWriter
in interface IOutputTerminal
public OutputStream getStream()
Gets the memory stream.
getStream
in interface IOutputTerminal
public InputStream getInputStream()
Returns input stream to read the data that was written.