|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
edu.rice.cs.util.swing.DocumentOutputStream
public class DocumentOutputStream
An extension of OutputStream
that writes its output to
an implementation of Document
.
Constructor Summary | |
---|---|
DocumentOutputStream(Document doc)
Constructs an OutputStream that writes its output to a Document . |
|
DocumentOutputStream(Document doc,
AttributeSet attributes)
Constructs an OutputStream that writes its output to a Document . |
Method Summary | |
---|---|
void |
write(byte[] b,
int off,
int len)
Writes an array of characters (bytes) to the stream at a particular offset. |
void |
write(int c)
Writes a character to the stream. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentOutputStream(Document doc)
OutputStream
that writes its output to a Document
.
When this constructor is used, all insertions to the Document will
be done with the attributes set to null
.
doc
- Document to write output to.public DocumentOutputStream(Document doc, AttributeSet attributes)
OutputStream
that writes its output to a Document
.
doc
- Document to write output to.attributes
- Attributes to use for inserting text into the document that is sent to this stream.Method Detail |
---|
public void write(int c)
write
in class OutputStream
c
- the ASCII value of the character to write.public void write(byte[] b, int off, int len)
write
in class OutputStream
b
- characters to write to streamoff
- start of writinglen
- number of characters to write from b
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |