org.apache.fop.apps
Class TraxInputHandler
java.lang.Object
|
+--org.apache.fop.apps.InputHandler
|
+--org.apache.fop.apps.TraxInputHandler
- public class TraxInputHandler
- extends InputHandler
XSLTInputHandler basically takes an xmlfile and transforms it with an xsltfile
and the resulting xsl:fo document is input for Fop.
Constructor Summary |
TraxInputHandler(java.io.File xmlfile,
java.io.File xsltfile)
|
Method Summary |
org.xml.sax.InputSource |
getInputSource()
overwrites the method of the super class to return the xmlfile |
org.xml.sax.XMLReader |
getParser()
overwrites this method of the super class and returns an XMLFilter instead of a
simple XMLReader which allows chaining of transformations |
static org.xml.sax.XMLFilter |
getXMLFilter(java.io.File xmlfile,
java.io.File xsltfile)
Creates from the transformer an instance of an XMLFilter which
then can be used in a chain with the XMLReader passed to Driver. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TraxInputHandler
public TraxInputHandler(java.io.File xmlfile,
java.io.File xsltfile)
getInputSource
public org.xml.sax.InputSource getInputSource()
- overwrites the method of the super class to return the xmlfile
- Overrides:
getInputSource
in class InputHandler
getParser
public org.xml.sax.XMLReader getParser()
throws FOPException
- overwrites this method of the super class and returns an XMLFilter instead of a
simple XMLReader which allows chaining of transformations
- Overrides:
getParser
in class InputHandler
getXMLFilter
public static org.xml.sax.XMLFilter getXMLFilter(java.io.File xmlfile,
java.io.File xsltfile)
throws FOPException
- Creates from the transformer an instance of an XMLFilter which
then can be used in a chain with the XMLReader passed to Driver. This way
during the conversion of the xml file + xslt stylesheet the resulting
data is fed into Fop. This should help to avoid memory problems
- Parameters:
xmlfile
- The xmlfile containing the text dataxsltfile
- An xslt stylesheet- Returns:
- XMLFilter an XMLFilter which can be chained together with other XMLReaders or XMLFilters
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.