org.yasl.text
Class PlainDocumentWriter

java.lang.Object
  extended byjava.io.Writer
      extended byorg.yasl.text.PlainDocumentWriter

public class PlainDocumentWriter
extends Writer

Version:
1.0
Author:
Jeff Chapman

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
PlainDocumentWriter()
           
 
Method Summary
 void close()
          Close the stream, flushing it first.
 void flush()
          Flush the stream.
 PlainDocument getPlainDocumentModel()
           
 void write(char[] cbuf, int off, int len)
          Write a portion of an array of characters.
 
Methods inherited from class java.io.Writer
write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainDocumentWriter

public PlainDocumentWriter()
Method Detail

getPlainDocumentModel

public PlainDocument getPlainDocumentModel()

close

public void close()
           throws IOException
Close the stream, flushing it first.

Throws:
IOException - If an I/O error occurs

flush

public void flush()
           throws IOException
Flush the stream.

Throws:
IOException - If an I/O error occurs

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Write a portion of an array of characters.

Parameters:
cbuf - Array of characters
off - Offset from which to start writing characters
len - Number of characters to write
Throws:
IOException - If an I/O error occurs