/** Sets the XSLT transformer from a File */ public void setTransformerFile(File xslt) throws TransformerConfigurationException { setTransformerSource(new StreamSource(xslt)); }
/** Sets the XSLT transformer from the given input stream */ public void setTransformerInputStream(InputStream in) throws TransformerConfigurationException, IOException { notNull(in, "InputStream"); setTransformerSource(new StreamSource(in)); }
/** Creates an XSLT processor using the given XSLT source */ public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException { notNull(xslt, "xslt"); XsltBuilder answer = new XsltBuilder(); answer.setTransformerSource(xslt); return answer; }