|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.pkg.OdfXMLHelper
public class OdfXMLHelper
| Constructor Summary | |
|---|---|
OdfXMLHelper()
|
|
| Method Summary | |
|---|---|
XMLReader |
createXMLReader(OdfPackage pkg)
create an XMLReader with a Resolver set to parse content in a ODF Package |
void |
parse(OdfPackage pkg,
String path,
ContentHandler contentHandler,
ErrorHandler errorHandler)
use SAX parser to parse content of package |
void |
transform(OdfPackage pkg,
String path,
File template)
Do XSL-Transformation on content contained in package insert result back to package |
void |
transform(OdfPackage pkg,
String path,
File template,
File out)
Do XSL-Transformation on content contained in package |
void |
transform(OdfPackage pkg,
String path,
Source templateSource,
File out)
Do XSL-Transformation on content contained in package |
void |
transform(OdfPackage pkg,
String path,
Source templateSource,
Result result)
Do XSL-Transformation on content contained in package |
void |
transform(OdfPackage pkg,
String path,
Source templateSource,
String outPath)
Do XSL-Transformation on content contained in package |
void |
transform(OdfPackage pkg,
String path,
String templatePath)
Do XSL-Transformation on content contained in package insert result back to package |
void |
transform(OdfPackage pkg,
String path,
String templatePath,
String outPath)
Do XSL-Transformation on content contained in package |
void |
transform(OdfPackage pkg,
String path,
Templates templates)
Do XSL-Transformation on content contained in package and insert result back to package |
void |
transform(OdfPackage pkg,
String path,
Templates templates,
Result result)
Do XSL-Transformation on content contained in package |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OdfXMLHelper()
| Method Detail |
|---|
public XMLReader createXMLReader(OdfPackage pkg)
throws SAXException,
ParserConfigurationException
pkg - - the ODF Package
SAXException
ParserConfigurationException
public void parse(OdfPackage pkg,
String path,
ContentHandler contentHandler,
ErrorHandler errorHandler)
throws SAXException,
ParserConfigurationException,
IOException,
IllegalArgumentException,
TransformerConfigurationException,
TransformerException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamcontentHandler - - a SAX Content handler to receive SAX EventserrorHandler - - a SAX Error handler to be called on errors during parsing
SAXException
ParserConfigurationException
IOException
IllegalArgumentException
TransformerConfigurationException
TransformerException
public void transform(OdfPackage pkg,
String path,
String templatePath,
String outPath)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplatePath - - a path to a file in the filesystem containing an XSL TemplateoutPath - - a path in the filesystem for the output of the XSL Transformation
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
Source templateSource,
String outPath)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplateSource - - TraX Source of an XSL Transformation TemplateoutPath - - path to an output file for the XSL Transformation
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
Source templateSource,
File out)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplateSource - - TraX Source of an XSL Transformationout - - an output File
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
String templatePath)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplatePath - - path inside the filesystem to an XSL template file
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
File template,
File out)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplate - - File containing an XSLT Templateout - - File for the XSLT ouput
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
File template)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplate - - a File containing an XSLT Template
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
Source templateSource,
Result result)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplateSource - - TraX Source of an XSLT Templateresult - - TraX Result of XSL-Tranformation
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
Templates templates,
Result result)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplates - - TraX XSLT Templateresult - - TraX XSLT Result
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
public void transform(OdfPackage pkg,
String path,
Templates templates)
throws TransformerConfigurationException,
TransformerException,
IOException,
IllegalArgumentException,
SAXException,
ParserConfigurationException
pkg - - a OdfPackagepath - - a path inside the OdfPackage, eg. to a contained content.xml streamtemplates - - Trax XSLT Template
TransformerConfigurationException
TransformerException
IOException
IllegalArgumentException
SAXException
ParserConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||