|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
sbrt.shell.gui.TextPaneOutputStream
public class TextPaneOutputStream
An output stream that writes its output to a javax.swing.JTextPane. This class is intended to work in conjuction with SbrtOutputPane.
Constructor Summary | |
---|---|
TextPaneOutputStream(javax.swing.JTextPane textPane,
java.lang.String style)
Creates a new instance of TextAreaOutputStream which writes to the specified instance of javax.swing.JTextArea control. |
Method Summary | |
---|---|
void |
write(int b)
Writes the specified byte as a character to the javax.swing.JTextArea. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextPaneOutputStream(javax.swing.JTextPane textPane, java.lang.String style)
textPane
- A reference to the javax.swing.JTextArea
control to which the output must be redirected
to.style
- Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- The byte to be written as character to the
JTextArea.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |