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.URI
baseUri
private static java.lang.String[][]
EXTENSIONS
private FopFactory
fopFactory
protected org.apache.commons.logging.Log
logger
logging instanceprivate static java.lang.String[][]
SHORT_NAMES
private Fop
task
-
Constructor Summary
Constructors Constructor Description FOPTaskStarter(Fop task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
determineExtension(java.lang.String outputFormat)
protected org.apache.commons.logging.Log
getLogger()
Returns the Commons-Logging instance for this classprivate java.lang.String
normalizeOutputFormat(java.lang.String format)
private void
render(java.io.File xmlFile, java.io.File xsltFile, java.io.File outFile, java.lang.String outputFormat)
private void
render(java.io.File foFile, java.io.File outFile, java.lang.String outputFormat)
private void
renderInputHandler(InputHandler inputHandler, java.io.File outFile, java.lang.String outputFormat)
private java.io.File
replaceExtension(java.io.File file, java.lang.String expectedExt, java.lang.String newExt)
void
run()
void
setLogger(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.SAXException
java.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)
-
-