Package org.foray.core

Examples of org.foray.core.OutputConfig


                rendererType = OutputTargetType.PDF;
            } else {
                rendererType = OutputTargetType.XML;
            }

            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


         * OutputTargets, but you can create and use a non-standard OutputTarget
         * as well.
         */
        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());

View Full Code Here

     * This does NOT mean, for example, that all URLs are valid, only that they are specified in the right place.
     * @throws ConfigurationException For errors parsing options.
     */
    public CommandLineOptions(final CommandLine parsedCommandLine) throws ConfigurationException {
        this.sessionConfig = new SessionConfig();
        this.rendererOptions = new OutputConfig();
        this.parsedCommandLine = parsedCommandLine;
        parseInputOptions();
        parseOutputOptions();
        parseConfigurationOptions();
    }
View Full Code Here

        final FOraySession session = FOraySpecific.makeFOraySession(
                configuration);

        this.document = new FOrayDocument(session, getInputSource(), null);

        final OutputConfig renderOptions =
                getCommandLineOptions().getRendererOptions();
        this.renderer = new AWTRenderer(this.getLogger(), renderOptions);
        try {
            this.frame = createPreviewDialog(this.renderer, this.resource);
        } catch (final OutputException e) {
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void run() throws FOrayException {
        this.sessionConfig = new SessionConfig();
        this.outputConfig = new OutputConfig();
        if (this.task.getUserConfig() != null) {
            new Options(this.sessionConfig, this.outputConfig, this.task.getUserConfig());
        }

        setBaseDirectory();
View Full Code Here

TOP

Related Classes of org.foray.core.OutputConfig

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.