Package ca.pgon.st.light6

Examples of ca.pgon.st.light6.XslTransformation


            StreamsUtils.flowStream(inputStream, zos);

            // Close
            zos.closeEntry();
        } catch (IOException e) {
            throw new StLightException("Problem creating the zip file", e);
        }

    }
View Full Code Here


     */
    public void close() {
        try {
            zos.close();
        } catch (IOException e) {
            throw new StLightException("Problem closing the zip file", e);
        }
    }
View Full Code Here

    public XslTransformation fromFile(File xmlFile) {
        try {
            fromXml = new StreamSource(xmlFile);
            return this;
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

     */
    public XslTransformation fromFile(String xmlPathName) {
        try {
            return fromInputStream(new FileInputStream(xmlPathName));
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

    public XslTransformation fromUrl(String xmlUrl) {
        try {
            fromXml = new StreamSource(xmlUrl);
            return this;
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

        assertFields();
        try {
            StreamResult out = new StreamResult(xmlFile);
            transformer.transform(fromXml, out);
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

    public void toFile(String xmlPathName) {
        assertFields();
        try {
            toOutputStream(new FileOutputStream(xmlPathName));
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

        assertFields();
        try {
            StreamResult out = new StreamResult(xmlOutputStream);
            transformer.transform(fromXml, out);
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

        try {
            ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
            toOutputStream(outputStream);
            return new String(outputStream.toByteArray());
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

        assertFields();
        try {
            StreamResult out = new StreamResult(xmlWriter);
            transformer.transform(fromXml, out);
        } catch (Exception e) {
            throw new StLightException(e);
        }
    }
View Full Code Here

TOP

Related Classes of ca.pgon.st.light6.XslTransformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.