|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
org.montsuqi.widgets.TextPaneOutputStream
public class TextPaneOutputStream
An output stream that writes text onto a JTextPane component.
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
TextPaneOutputStream(javax.swing.JTextPane target)
Creates a TextPaneOutputStream that writes text onto the given target. |
|
TextPaneOutputStream(javax.swing.JTextPane target,
int size)
Creates a TextPaneOutputStream that writes text onto the given target. |
|
| Method Summary | |
|---|---|
javax.swing.text.MutableAttributeSet |
getAttributeSet()
Gets the attribute set which is used to write text. |
void |
write(byte[] b,
int off,
int len)
Appends the given data to the target teext pane. |
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, write, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextPaneOutputStream(javax.swing.JTextPane target)
Creates a TextPaneOutputStream that writes text onto the given target.
target - The target text pane this stream writes on.
public TextPaneOutputStream(javax.swing.JTextPane target,
int size)
Creates a TextPaneOutputStream that writes text onto the given target.
target - The target text pane this stream writes on.size - the size of buffer.| Method Detail |
|---|
public javax.swing.text.MutableAttributeSet getAttributeSet()
Gets the attribute set which is used to write text.
You can modify the returned attribute set since it is mutable.
public void write(byte[] b,
int off,
int len)
Appends the given data to the target teext pane.
write in class java.io.ByteArrayOutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||