lapis
Class DocumentWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.PrintWriter
          extended bylapis.DocumentWriter
All Implemented Interfaces:
Document, DocumentView
Direct Known Subclasses:
StatusWriter

public class DocumentWriter
extends PrintWriter
implements Document, DocumentView


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Fields inherited from interface lapis.Document
BaseProperty, CommandProperty, DEFAULT, MIMEProperty, ProcessProperty, SavedVersionProperty, StderrProperty, StdoutProperty, URLProperty
 
Constructor Summary
DocumentWriter(DocumentFactory factory)
           
DocumentWriter(DocumentFactory factory, OutputStream out)
           
DocumentWriter(DocumentFactory factory, Writer out)
           
 
Method Summary
 void close()
           
 DocumentView getCookedView()
           
 DocumentView getDefaultView()
           
 Document getDocument()
           
 DocumentFactory getFactory()
           
 PatternCache getPatternCache()
           
 Dictionary getProperties()
           
 Object getProperty(Object key)
           
 Reader getReader()
           
 String getText()
           
 String getText(Region r)
           
 DocumentVersion getVersion()
           
 void putProperty(Object key, Object value)
           
 Region toRegion()
           
 String toString()
           
 
Methods inherited from class java.io.PrintWriter
checkError, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentWriter

public DocumentWriter(DocumentFactory factory)

DocumentWriter

public DocumentWriter(DocumentFactory factory,
                      Writer out)

DocumentWriter

public DocumentWriter(DocumentFactory factory,
                      OutputStream out)
Method Detail

close

public void close()

getText

public String getText()
Specified by:
getText in interface Document

getText

public String getText(Region r)
Specified by:
getText in interface Document

toRegion

public Region toRegion()
Specified by:
toRegion in interface Document

getReader

public Reader getReader()
Specified by:
getReader in interface Document

getProperties

public Dictionary getProperties()
Specified by:
getProperties in interface Document

getProperty

public Object getProperty(Object key)
Specified by:
getProperty in interface Document

putProperty

public void putProperty(Object key,
                        Object value)
Specified by:
putProperty in interface Document

getPatternCache

public PatternCache getPatternCache()
Specified by:
getPatternCache in interface Document

getFactory

public DocumentFactory getFactory()
Specified by:
getFactory in interface Document

getVersion

public DocumentVersion getVersion()
Specified by:
getVersion in interface Document

toString

public String toString()

getDefaultView

public DocumentView getDefaultView()
Specified by:
getDefaultView in interface Document

getCookedView

public DocumentView getCookedView()
Specified by:
getCookedView in interface Document

getDocument

public Document getDocument()
Specified by:
getDocument in interface DocumentView