| java.lang.Object java.io.OutputStream edu.rice.cs.util.swing.DocumentOutputStream
DocumentOutputStream | public class DocumentOutputStream extends OutputStream (Code) | | An extension of
OutputStream that writes its output to
an implementation of
Document .
version: $Id: DocumentOutputStream.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public void | write(int c) Write a character to the stream. | public void | write(byte[] b, int off, int len) Write an array of characters (bytes) to the stream at a particular offset. |
DocumentOutputStream | public DocumentOutputStream(Document doc)(Code) | | Constructs an
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 .
Parameters: doc - Document to write output to. |
DocumentOutputStream | public DocumentOutputStream(Document doc, AttributeSet attributes)(Code) | | Constructs an
OutputStream that writes its output to a
Document .
Parameters: doc - Document to write output to. Parameters: attributes - Attributes to use for inserting text into the documentthat is sent to this stream. |
write | public void write(int c)(Code) | | Write a character to the stream.
Parameters: c - the ASCII value of the character to write. |
write | public void write(byte[] b, int off, int len)(Code) | | Write an array of characters (bytes) to the stream at a particular offset.
Parameters: b - characters to write to stream Parameters: off - start of writing Parameters: len - number of characters to write from b |
|
|