Package org.axsl.output

Examples of org.axsl.output.OutputTarget


        final FOrayDocument document = new FOrayDocument(session, inputSource,
                null);

        //Setup Renderer
        final OutputStream out = new FileOutputStream(pdf);
        final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                OutputTargetType.PDF, null, out, session.getLogger(),
                session.getGraphicServer());

        //Setup FOrayTarget
        new FOrayTarget(document, renderer, null, out);
View Full Code Here


        try {
            out = new FileOutputStream(pdf);
        } catch (final FileNotFoundException e) {
            throw new FOrayException(e);
        }
        final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                OutputTargetType.PDF, null, out, session.getLogger(),
                session.getGraphicServer());

        //Setup FOrayTarget
        new FOrayTarget(document, renderer, null, out);
View Full Code Here

            }

            final OutputConfig renderOptions = new OutputConfig();
            renderOptions.setFineDetail(Boolean.FALSE, SessionConfig.PRECEDENCE_DEFAULT);
            renderOptions.setConsistentOutput(Boolean.TRUE, SessionConfig.PRECEDENCE_DEFAULT);
            final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                    rendererType, renderOptions, bos, session.getLogger(),
                    session.getGraphicServer());

            new FOrayTarget(document, renderer, null, bos);
View Full Code Here

        try {
            out = new FileOutputStream(pdf);
        } catch (final FileNotFoundException e) {
            throw new FOrayException(e);
        }
        final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                OutputTargetType.PDF, null, out, session.getLogger(),
                session.getGraphicServer());

        //Setup FOrayTarget
        new FOrayTarget(document, renderer, null, out);
View Full Code Here

         */
        final OutputTargetType outputType =
                this.commandLineOptions.getOutputMode();
        final OutputConfig outputOptions = this.getOutputConfig();
        final FileOutputStream outputStream = getFileOutputStream();
        final OutputTarget outputTarget = OutputTargetFactory.makeOutputTarget(
                outputType, outputOptions, outputStream,
                session.getLogger(), session.getGraphicServer());

        /*
         * Instantiate and configure the FOrayTarget(s). Multiple targets can
View Full Code Here

            final FOrayDocument document = setupSAXDocument(session,
                    inputHandler);

            // Setup the Renderer
            final ByteArrayOutputStream output = new ByteArrayOutputStream();
            final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                    OutputTargetType.PDF, null, output,
                    session.getLogger(), session.getGraphicServer());

            // Setup FOrayTarget
            new FOrayTarget(document, renderer, null, output);
View Full Code Here

            final FOrayDocument document = new FOrayDocument(session,
                    transformer, source);

            // Setup the Renderer
            final ByteArrayOutputStream output = new ByteArrayOutputStream();
            final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                    OutputTargetType.PDF, null, output,
                    session.getLogger(), session.getGraphicServer());

            // Setup FOrayTarget
            new FOrayTarget(document, renderer, null, output);
View Full Code Here

    public static OutputTarget makeOutputTarget(
            final OutputTargetType rendererType,
            final OutputConfig outputOptions, final OutputStream outputStream,
            final Log logger, final GraphicServer graphicServer)
            throws FOrayException {
        OutputTarget renderer = null;
        switch (rendererType) {
        case AWT: {
            renderer = new AWTRenderer(logger, outputOptions);
            break;
        }
View Full Code Here

     */
    private FOrayTarget setupTarget(final FOrayDocument document)
            throws FOrayException {
        // Setup the Renderer
        final ByteArrayOutputStream output = new ByteArrayOutputStream();
        final OutputTarget renderer = OutputTargetFactory.makeOutputTarget(
                OutputTargetType.PDF, null, output,
                document.getLogger(), document.getGraphicServer());

        // Setup FOrayTarget
        final FOrayTarget target = new FOrayTarget(document, renderer, null,
View Full Code Here

                    inputSource, null);

            if (this.task.getRendererType() == OutputTargetType.XML) {
                this.outputConfig.setFineDetail(Boolean.TRUE, SessionConfig.PRECEDENCE_DEFAULT);
            }
            final OutputTarget outputTarget =
                    OutputTargetFactory.makeOutputTarget(
                    this.task.getRendererType(), this.outputConfig, out,
                    session.getLogger(), session.getGraphicServer());
            new FOrayTarget(document, outputTarget, null, out);
View Full Code Here

TOP

Related Classes of org.axsl.output.OutputTarget

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.