Package org.foray.core

Examples of org.foray.core.FOrayDocument


     */
    public void renderFO(final InputSource inputSource,
            final HttpServletResponse response) throws ServletException {
        try {
            final FOraySession session = setupSession(response);
            final FOrayDocument document = setupSAXDocument(session,
                    inputSource);
            setupTarget(document);
            session.process();
            reportOK(response);
        } catch (final FOrayException ex) {
View Full Code Here


     */
    public void renderXML(final File xmlFile, final File xslFile,
            final HttpServletResponse response) throws ServletException {
        try {
            final FOraySession session = setupSession(response);
            final FOrayDocument document = setupJAXPDocument(xmlFile, xslFile,
                    session);
            setupTarget(document);
            session.process();
            reportOK(response);
        } catch (final FOrayException ex) {
View Full Code Here

     */
    public void renderFO(final InputSource inputSource,
            final HttpServletResponse response) throws ServletException {
        try {
            final FOraySession session = setupSession(response);
            final FOrayDocument document = setupSAXDocument(session,
                    inputSource);
            final FOrayTarget target = setupTarget(document);
            session.process();
            sendContentToResponse(response, target);
        } catch (final FOrayException ex) {
View Full Code Here

     */
    public void renderXML(final File xmlFile, final File xslFile,
            final HttpServletResponse response) throws ServletException {
        try {
            final FOraySession session = setupSession(response);
            final FOrayDocument document = setupJAXPDocument(xmlFile, xslFile,
                    session);
            final FOrayTarget target = setupTarget(document);
            session.process();
            sendContentToResponse(response, target);
        } catch (final FOrayException ex) {
View Full Code Here

        }

        try {
            final FOraySession session = FOraySpecific.makeFOraySession(
                    this.sessionConfig);
            final FOrayDocument document = new FOrayDocument(session,
                    inputSource, null);

            if (this.task.getRendererType() == OutputTargetType.XML) {
                this.outputConfig.setFineDetail(Boolean.TRUE, SessionConfig.PRECEDENCE_DEFAULT);
            }
View Full Code Here

         * There is also a constructor for a DOM document, and another for a
         * JAXP Transformer and Source.
         * Multiple documents can be instantiated, and they will be processed
         * in the order submitted.
         */
        FOrayDocument document = null;
        if (this.commandLineOptions.getInputMode()
                == CommandLineOptions.INPUT_FO) {
            document = new FOrayDocument(session, getInputSource(), null);
        } else {
            document = new FOrayDocument(session,
                    this.commandLineOptions.getXMLFile(),
                    this.commandLineOptions.getXSLFile());
        }

        /*
 
View Full Code Here

TOP

Related Classes of org.foray.core.FOrayDocument

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.