urv.log
Class TextPaneAppender.TextPaneOutStream

java.lang.Object
  extended by java.io.OutputStream
      extended by 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

Constructor Summary
TextPaneAppender.TextPaneOutStream()
           
 
Method Summary
 void addTextPane(javax.swing.JTextPane textPane, org.apache.log4j.Level l)
           
 void close()
           
 void flush()
           
 java.lang.StringBuffer getTextBuffer(int level)
           
 javax.swing.JTextPane getTextPane(int level)
           
 boolean isBufferFlushable(java.lang.StringBuffer sb)
           
 void setBufferFlushable(java.lang.StringBuffer sb, boolean b)
           
 void write(int b)
           
 void writeLeveled(java.lang.String msg, org.apache.log4j.Level level)
           
 
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
 

Constructor Detail

TextPaneAppender.TextPaneOutStream

public TextPaneAppender.TextPaneOutStream()
Method Detail

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)