/** * @param out * @param document * @param xsltStream * @throws TransformerFactoryConfigurationError * * @throws TransformerException */ public static void parse(OutputStream out, Document document, InputStream xsltStream, URIResolver customResolver) throws TransformerFactoryConfigurationError, TransformerException { parse(out, document, xsltStream, customResolver, false); }
/** * @param out * @param document * @param xsltStream * @throws TransformerFactoryConfigurationError * * @throws TransformerException */ public static void parse(OutputStream out, Document document, InputStream xsltStream, URIResolver customResolver) throws TransformerFactoryConfigurationError, TransformerException { parse(out, document, xsltStream, customResolver, false); }
/** * Writes the output file. * * @param doc * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { if (!fileExists) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream, resolver); this.stream.flush(); this.stream.close(); } } }
/** * @param out * @param document * @param xsltStream * @throws TransformerFactoryConfigurationError * * @throws TransformerException */ public static void parse(OutputStream out, Document document, InputStream xsltStream) throws TransformerFactoryConfigurationError, TransformerException { Source xsltSource = new StreamSource(xsltStream); Transformer transformer = TransformerFactory.newInstance() .newTransformer(xsltSource); parse(out, document, transformer); }
/** * @param out * @param document * @param xsltStream * @throws TransformerFactoryConfigurationError * * @throws TransformerException */ public static void parse(OutputStream out, Document document, InputStream xsltStream) throws TransformerFactoryConfigurationError, TransformerException { Source xsltSource = new StreamSource(xsltStream); Transformer transformer = TransformerFactory.newInstance() .newTransformer(xsltSource); parse(out, document, transformer); }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parseHeader(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, this.headerTemplateCache.newTransformer()); outStream.write('\n'); outStream.write('\n'); outStream.flush(); outStream.close(); }
/** * Writes the output file. * * @param doc * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { if (!fileExists) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream, resolver); this.stream.write('\n'); this.stream.write('\n'); this.stream.flush(); this.stream.close(); } }
/** * Writes the output file. * * @param doc * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { if (!fileExists) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream, resolver); this.stream.write('\n'); this.stream.write('\n'); this.stream.flush(); this.stream.close(); } } }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parseSource(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, this.sourceTemplateCache.newTransformer()); outStream.write('\n'); outStream.write('\n'); outStream.flush(); outStream.close(); }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parseSource(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, this.sourceTemplateCache.newTransformer()); outStream.write('\n'); outStream.write('\n'); outStream.flush(); outStream.close(); }
/** * Writes the output file. * * @param doc * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { if (!fileExists) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream, resolver); this.stream.write('\n'); this.stream.write('\n'); this.stream.flush(); this.stream.close(); } } }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parseHeader(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, this.headerTemplateCache.newTransformer()); outStream.write('\n'); outStream.write('\n'); outStream.flush(); outStream.close(); }
/** * Writes the output file. * * @param doc * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { if (!fileExists || this.isOverride()) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream, resolver); this.stream.flush(); this.stream.close(); } }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parse(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, getTransformer()); outStream.flush(); outStream.close(); PrettyPrinter.prettify(outputFile); }
/** * Writes the output file * * @param doc * @param outputFile * @throws Exception */ private void parse(Document doc, File outputFile) throws Exception { OutputStream outStream = new FileOutputStream(outputFile); XSLTTemplateProcessor.parse(outStream, doc, getTransformer()); outStream.flush(); outStream.close(); PrettyPrinter.prettify(outputFile); }
parse(out, document, transformer);
parse(out, document, transformer);