JFlex
Class StdOutWriter
public final
class
StdOutWriter
extends PrintWriter
Convenience class for JFlex stdout, redirects output to a TextArea
if in GUI mode.
Method Summary |
void | println()
Begin a new line. |
void | setGUIMode(TextArea text)
Set the TextArea to write text to. |
void | write(int c) Write a single character. |
void | write(char[] buf, int off, int len) Write a portion of an array of characters. |
void | write(String s, int off, int len) Write a portion of a string. |
public StdOutWriter()
A StdOutWriter, attached to System.out, no gui mode
public void println()
Begin a new line. Which actual character/s is/are written
depends on the runtime platform.
public void setGUIMode(TextArea text)
Set the TextArea to write text to. Will continue
to write to System.out if text is
null
.
Parameters: text the TextArea to write to
public void write(int c)
Write a single character.
public void write(char[] buf, int off, int len)
Write a portion of an array of characters.
public void write(String s, int off, int len)
Write a portion of a string.