Package org.apache.fop.cli
Class ImageInputHandler
java.lang.Object
org.apache.fop.cli.InputHandler
org.apache.fop.cli.ImageInputHandler
- All Implemented Interfaces:
ErrorListener
,Renderable
InputHandler for the images (for example TIFF) as input.
-
Field Summary
Fields inherited from class org.apache.fop.cli.InputHandler
log, sourcefile
-
Constructor Summary
ConstructorDescriptionImageInputHandler
(File imagefile, File xsltfile, Vector params) Main constructor. -
Method Summary
Methods inherited from class org.apache.fop.cli.InputHandler
createCatalogResolver, error, fatalError, renderTo, renderTo, transformTo, transformTo, warning
-
Constructor Details
-
ImageInputHandler
Main constructor.- Parameters:
imagefile
- the image filexsltfile
- XSLT file (may be null in which case the default stylesheet is used)params
- Vector of command-line parameters (name, value, name, value, ...) for XSL stylesheet, null if none
-
-
Method Details
-
createMainSource
Creates a Source for the main input file. Processes XInclude if available in the XML parser.- Overrides:
createMainSource
in classInputHandler
- Returns:
- the Source for the main input file
-
createXSLTSource
Creates a Source for the selected stylesheet.- Overrides:
createXSLTSource
in classInputHandler
- Returns:
- the Source for the selected stylesheet or null if there's no stylesheet
-