|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.swing.console.InputAdapter
ti.swing.console.LogInputHandler
The LogInputHandler class logs everything written to a console to an output stream.
Constructor Summary | |
LogInputHandler(Console console,
java.io.OutputStream out)
Class constructor. |
|
LogInputHandler(Console console,
java.io.Writer out)
Class constructor. |
Method Summary | |
void |
append(char[] cbuf,
int off,
int len)
Append characters to the end of the character stream. |
void |
close()
Close method for doing any cleanup. |
void |
zap(int num)
Delete characters from end of character stream. |
Methods inherited from class ti.swing.console.InputAdapter |
addRegion, getBufferLock, getData, getOffset, getRegions, lock, removeRegion, unlock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogInputHandler(Console console, java.io.Writer out)
console
- the console view to which this input handler
attaches to.out
- the output stream to log topublic LogInputHandler(Console console, java.io.OutputStream out) throws java.io.IOException
console
- the console view to which this input handler
attaches to.out
- the output stream to log toMethod Detail |
public void append(char[] cbuf, int off, int len)
append
in interface InputHandler
append
in class InputAdapter
cbuf
- the character bufferoff
- the offset into cbuf to first character to appendlen
- the number of characters to appendpublic void zap(int num)
zap
in interface InputHandler
zap
in class InputAdapter
num
- the number of characters to deletepublic void close()
InputAdapter
close
in interface InputHandler
close
in class InputAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |