/** * @param file the filename to use for the systemid * @return the systemid * @deprecated since 1.5.x. * Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead. */ @Deprecated protected String getSystemId(final File file) { return JAXPUtils.getSystemId(file); }
src.setSystemId(JAXPUtils.getSystemId(infile)); return src;
final StreamResult res = new StreamResult(fos); res.setSystemId(JAXPUtils.getSystemId(outfile)); final Source src = getSource(fis, infile);
try { source = new InputSource(Files.newInputStream(resFile.toPath())); String sysid = JAXPUtils.getSystemId(resFile); source.setSystemId(sysid); log("catalog entry matched a readable file: '"
/** * Get the systemid of the appropriate stylesheet based on its * name and styledir. If no styledir is defined it will load * it as a java resource in the xsl child package, otherwise it * will get it from the given directory. * @return system ID of the stylesheet. * @throws IOException thrown if the requested stylesheet does * not exist. */ protected String getStylesheetSystemId() throws IOException { final String xslname = getXslName(); if (styleDir == null) { URL url = getClass().getResource("xsl/" + xslname); if (url == null) { throw new FileNotFoundException("Could not find jar resource " + xslname); } return url.toExternalForm(); } File file = new File(styleDir, xslname); if (!file.exists()) { throw new FileNotFoundException("Could not find file '" + file + "'"); } return JAXPUtils.getSystemId(file); }
Source xsltSource = new StreamSource(xsltStream, JAXPUtils.getSystemId(style)); outStream = new BufferedOutputStream(new FileOutputStream(outFile)); StreamResult res = new StreamResult(outStream); Source src = new StreamSource(inStream, JAXPUtils.getSystemId(style)); transformer.transform(src, res); } catch (TransformerException e) {