Class ImageInputHandler

  • All Implemented Interfaces:
    javax.xml.transform.ErrorListener, Renderable

    public class ImageInputHandler
    extends InputHandler
    InputHandler for the images (for example TIFF) as input.
    • Constructor Detail

      • ImageInputHandler

        public ImageInputHandler​(java.io.File imagefile,
                                 java.io.File xsltfile,
                                 java.util.Vector params)
        Main constructor.
        Parameters:
        imagefile - the image file
        xsltfile - 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 Detail

      • createMainSource

        protected javax.xml.transform.Source createMainSource()
        Creates a Source for the main input file. Processes XInclude if available in the XML parser.
        Overrides:
        createMainSource in class InputHandler
        Returns:
        the Source for the main input file
      • createXSLTSource

        protected javax.xml.transform.Source createXSLTSource()
        Creates a Source for the selected stylesheet.
        Overrides:
        createXSLTSource in class InputHandler
        Returns:
        the Source for the selected stylesheet or null if there's no stylesheet