1 51 package org.apache.fop.apps; 52 53 import org.xml.sax.InputSource ; 55 import org.xml.sax.XMLReader ; 56 57 import java.io.*; 59 60 66 public class XSLTInputHandler extends InputHandler { 67 private TraxInputHandler traxInputHandler; 68 69 public XSLTInputHandler(File xmlfile, File xsltfile) 70 throws FOPException { 71 traxInputHandler = new TraxInputHandler(xmlfile, xsltfile); 72 } 73 74 public XSLTInputHandler(String xmlURL, String xsltURL) 75 throws FOPException { 76 traxInputHandler = new TraxInputHandler(xmlURL, xsltURL); 77 } 78 79 public XSLTInputHandler(InputSource xmlSource, InputSource xsltSource) 80 throws FOPException { 81 traxInputHandler = new TraxInputHandler(xmlSource, xsltSource); 82 } 83 84 89 public InputSource getInputSource() { 90 return traxInputHandler.getInputSource(); 91 } 92 93 98 public XMLReader getParser() throws FOPException { 99 return traxInputHandler.getParser(); 100 } 101 102 public void run(Driver driver) throws FOPException { 103 traxInputHandler.run(driver); 104 } 105 106 public void setParameter(String name, Object value) { 107 traxInputHandler.setParameter(name, value); 108 } 109 } 110 111 | Popular Tags |