databionics.gui
Class LogPanelWriter

java.lang.Object
  extended by java.io.Writer
      extended by databionics.gui.LogPanelWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class LogPanelWriter
extends java.io.Writer

A writer that writes to a LogPanel


Field Summary
protected static org.apache.log4j.Logger log
          interface to log4j system
protected  LogPanel logPanel
          panel to write to
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LogPanelWriter(LogPanel logPanel)
          constructor with panel to write to
 
Method Summary
 void close()
          Ignore call to close
 void flush()
          Ignore call to flush
 void write(char[] buf, int off, int len)
          Write an array of chars to the panel
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
interface to log4j system


logPanel

protected LogPanel logPanel
panel to write to

Constructor Detail

LogPanelWriter

public LogPanelWriter(LogPanel logPanel)
constructor with panel to write to

Method Detail

write

public void write(char[] buf,
                  int off,
                  int len)
Write an array of chars to the panel

Specified by:
write in class java.io.Writer
Parameters:
buf - - Array of characters
off - - Offset from which to start writing characters
len - - Number of characters to write

flush

public void flush()
Ignore call to flush

Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer

close

public void close()
Ignore call to close

Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.