|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer org.devaki.nextobjects.util.LogWriter
LogWriter has the ability to forward the log4j output to a LogFrame class Inspired by Thomas Weber from OpenAI, http://openai.sourceforge.net/
Field Summary |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
LogWriter(JTextAreaOutputStream pjTextAreaOutputStream)
Constructs a new LogWriter and registers the LogFrame |
Method Summary | |
void |
close()
Mandatory close Method declaration |
void |
flush()
Mandatory Method declaration |
void |
write(char[] parm1,
int parm2,
int parm3)
Common flux write method |
void |
write(java.lang.String text)
Append 'text' to the LogFrame textarea |
Methods inherited from class java.io.Writer |
write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogWriter(JTextAreaOutputStream pjTextAreaOutputStream)
pjTextAreaOutputStream
- the textareaMethod Detail |
public final void write(char[] parm1, int parm2, int parm3) throws java.io.IOException
parm1
- char array to be writtenparm2
- start offset to be writtenparm3
- number of char to write
java.io.IOException
- a standard io exceptionpublic void flush() throws java.io.IOException
java.io.IOException
- a standard io exceptionpublic void close() throws java.io.IOException
java.io.IOException
- a standard io exceptionpublic final void write(java.lang.String text)
text
- the text
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |