org.jopendocument.dom.template
Class RhinoStreamTemplate

java.lang.Object
  extended by org.jopendocument.dom.template.Template
      extended by org.jopendocument.dom.template.RhinoStreamTemplate

public class RhinoStreamTemplate
extends Template


Field Summary
 
Fields inherited from class org.jopendocument.dom.template.Template
contentTemplate
 
Constructor Summary
RhinoStreamTemplate(InputStream s)
           
 
Method Summary
 ODSingleXMLDocument createDocument()
           
 void hideParagraph(String name)
           
 File saveAs(File outFile)
           
 void saveTo(OutputStream out)
           
 void setField(String key, Object value)
           
 void showParagraph(String name)
           
 
Methods inherited from class org.jopendocument.dom.template.Template
createDocument, createDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoStreamTemplate

public RhinoStreamTemplate(InputStream s)
                    throws IOException,
                           TemplateException,
                           org.jdom.JDOMException
Throws:
IOException
TemplateException
org.jdom.JDOMException
Method Detail

createDocument

public ODSingleXMLDocument createDocument()
                                   throws TemplateException
Throws:
TemplateException

showParagraph

public void showParagraph(String name)

hideParagraph

public void hideParagraph(String name)

setField

public void setField(String key,
                     Object value)

saveAs

public File saveAs(File outFile)
            throws IOException,
                   TemplateException
Throws:
IOException
TemplateException

saveTo

public void saveTo(OutputStream out)
            throws IOException,
                   TemplateException
Throws:
IOException
TemplateException


Copyright © 2010 jOpenDocument All Rights Reserved.