Package org.apache.fop.tools.anttasks
Class FOPTaskStarter
- java.lang.Object
-
- org.apache.fop.tools.anttasks.FOPTaskStarter
-
class FOPTaskStarter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.URIbaseUriprivate static java.lang.String[][]EXTENSIONSprivate FopFactoryfopFactoryprotected org.apache.commons.logging.Logloggerlogging instanceprivate static java.lang.String[][]SHORT_NAMESprivate Foptask
-
Constructor Summary
Constructors Constructor Description FOPTaskStarter(Fop task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringdetermineExtension(java.lang.String outputFormat)protected org.apache.commons.logging.LoggetLogger()Returns the Commons-Logging instance for this classprivate java.lang.StringnormalizeOutputFormat(java.lang.String format)private voidrender(java.io.File xmlFile, java.io.File xsltFile, java.io.File outFile, java.lang.String outputFormat)private voidrender(java.io.File foFile, java.io.File outFile, java.lang.String outputFormat)private voidrenderInputHandler(InputHandler inputHandler, java.io.File outFile, java.lang.String outputFormat)private java.io.FilereplaceExtension(java.io.File file, java.lang.String expectedExt, java.lang.String newExt)voidrun()voidsetLogger(org.apache.commons.logging.Log logger)Sets the Commons-Logging instance for this class
-
-
-
Field Detail
-
fopFactory
private final FopFactory fopFactory
-
task
private Fop task
-
baseUri
private java.net.URI baseUri
-
logger
protected org.apache.commons.logging.Log logger
logging instance
-
SHORT_NAMES
private static final java.lang.String[][] SHORT_NAMES
-
EXTENSIONS
private static final java.lang.String[][] EXTENSIONS
-
-
Constructor Detail
-
FOPTaskStarter
FOPTaskStarter(Fop task) throws org.xml.sax.SAXException, java.io.IOException
- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
-
Method Detail
-
setLogger
public void setLogger(org.apache.commons.logging.Log logger)
Sets the Commons-Logging instance for this class- Parameters:
logger- The Commons-Logging instance
-
getLogger
protected org.apache.commons.logging.Log getLogger()
Returns the Commons-Logging instance for this class- Returns:
- The Commons-Logging instance
-
normalizeOutputFormat
private java.lang.String normalizeOutputFormat(java.lang.String format)
-
determineExtension
private java.lang.String determineExtension(java.lang.String outputFormat)
-
replaceExtension
private java.io.File replaceExtension(java.io.File file, java.lang.String expectedExt, java.lang.String newExt)
-
run
public void run() throws FOPException- Throws:
FOPException
-
renderInputHandler
private void renderInputHandler(InputHandler inputHandler, java.io.File outFile, java.lang.String outputFormat) throws java.lang.Exception
- Throws:
java.lang.Exception
-
render
private void render(java.io.File foFile, java.io.File outFile, java.lang.String outputFormat) throws FOPException- Throws:
FOPException
-
render
private void render(java.io.File xmlFile, java.io.File xsltFile, java.io.File outFile, java.lang.String outputFormat)
-
-