|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
JFlex.StdOutWriter
Convenience class for JFlex stdout, redirects output to a TextArea if in GUI mode.
Field Summary |
Fields inherited from class java.io.PrintWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
StdOutWriter()
A StdOutWriter, attached to System.out, no gui mode |
Method Summary | |
void |
println()
Begin a new line. |
void |
setGUIMode(java.awt.TextArea text)
Set the TextArea to write text to. |
void |
write(char[] buf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String s,
int off,
int len)
Write a portion of a string. |
Methods inherited from class java.io.PrintWriter |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, setError, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StdOutWriter()
Method Detail |
public void setGUIMode(java.awt.TextArea text)
null
.
text
- the TextArea to write topublic void write(int c)
public void write(char[] buf, int off, int len)
public void write(java.lang.String s, int off, int len)
public void println()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |