foundry-0.9.1

foundry.io
Class DocumentWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--foundry.io.DocumentWriter

public class DocumentWriter
extends Writer


Field Summary
private  Document document
           
private  boolean isClosed
           
 
Fields inherited from class java.io.Writer
lock, writeBuffer, writeBufferSize
 
Constructor Summary
DocumentWriter()
           
DocumentWriter(Document document)
           
DocumentWriter(JTextComponent component)
           
 
Method Summary
 void close()
           
 void flush()
           
 Document getDocument()
           
 void write(char[] chars, int offset, int length)
           
 void write(String string, int offset, int length)
           
 
Methods inherited from class java.io.Writer
write, write, write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

document

private Document document

isClosed

private boolean isClosed
Constructor Detail

DocumentWriter

public DocumentWriter()

DocumentWriter

public DocumentWriter(JTextComponent component)

DocumentWriter

public DocumentWriter(Document document)
Method Detail

getDocument

public Document getDocument()

flush

public void flush()
           throws IOException
Overrides:
flush in class Writer

close

public void close()
           throws IOException
Overrides:
close in class Writer

write

public void write(String string,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class Writer

write

public void write(char[] chars,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class Writer

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson