urv.log
Class TextPaneAppender.TextPaneOutStream
java.lang.Object
java.io.OutputStream
urv.log.TextPaneAppender.TextPaneOutStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
- Enclosing class:
- TextPaneAppender
public static class TextPaneAppender.TextPaneOutStream
- extends java.io.OutputStream
- Author:
- ADolgarev OutputStream that writes messages to the document of
JTextPane
Methods inherited from class java.io.OutputStream |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextPaneAppender.TextPaneOutStream
public TextPaneAppender.TextPaneOutStream()
addTextPane
public void addTextPane(javax.swing.JTextPane textPane,
org.apache.log4j.Level l)
close
public void close()
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.OutputStream
flush
public void flush()
- Specified by:
flush
in interface java.io.Flushable
- Overrides:
flush
in class java.io.OutputStream
getTextBuffer
public java.lang.StringBuffer getTextBuffer(int level)
getTextPane
public javax.swing.JTextPane getTextPane(int level)
isBufferFlushable
public boolean isBufferFlushable(java.lang.StringBuffer sb)
setBufferFlushable
public void setBufferFlushable(java.lang.StringBuffer sb,
boolean b)
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
writeLeveled
public void writeLeveled(java.lang.String msg,
org.apache.log4j.Level level)