Package org.foray.core

Examples of org.foray.core.SessionConfig


     * @throws FOrayException For errors initializing the FOray-specific
     * objects.
     */
    private FoDocumentReader() throws IOException, FOrayException {
        final Log logger = Logging.makeQuietLogger();
        final SessionConfig sessionConfig = new SessionConfig();

        this.testDirectory = Environment.getTestDirectory();

        final FontServer fontServer = FOraySpecific.makeFontServer(logger,
                sessionConfig);
View Full Code Here


        this.log.debug("converting xml:" + xml + " and xsl:" +
                  xsl + " to area tree");

        try {
            final File xmlFile = new File(this.baseDir + "/" + xml);
            final SessionConfig configuration = new SessionConfig();

            try {
                configuration.parseOption("base-directory",
                        xmlFile.getParentFile().toURI().toURL().toExternalForm(),
                        SessionConfig.PRECEDENCE_DEFAULT);
            } catch (final IOException e) {
                this.log.error("Error setting base directory");
            } catch (final ConfigurationException e) {
View Full Code Here

     */
    public void convertXML2PDF(final File xml, final File xslt, final File pdf)
                throws FOrayException {

        // Setup FOraySession
        final SessionConfig config = new SessionConfig();
        final FOraySession session = FOraySpecific.makeFOraySession(config);

        // Setup FOrayDocument
        // Setup JAXP transformation
        final TransformerFactory factory = TransformerFactory.newInstance();
View Full Code Here

         * method serves as de facto documentation of the process for those
         * who wish to embed FOray in other applications.
         */

        /* Instantiate the FOraySession. */
        final SessionConfig sessionConfig = getOptions().getSessionConfig();
        final FOraySession session = FOraySpecific.makeFOraySession(
                sessionConfig);

        /*
         * Instantiate and configure the FOrayDocument(s). The constructor
View Full Code Here

     * Any testing for consistency should be done upstream.
     * 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

            this.userMessage.setTranslator(getResourceBundle(AWTStarter.TRANSLATION_PATH + "messages." + language));
        } catch (final IOException e) {
            throw new FOrayException(e);
        }

        final SessionConfig configuration = getOptions().getSessionConfig();
        final FOraySession session = FOraySpecific.makeFOraySession(
                configuration);

        this.document = new FOrayDocument(session, getInputSource(), null);
View Full Code Here

            final Starter starter = options.getStarter();
            starter.run();
        } catch (final FOrayException e) {
            System.err.println("" + e.getMessage());
            if (options != null) {
                final SessionConfig sessionConfig = options.getSessionConfig();
                if (sessionConfig.optionVerbosity().equals("debug")) {
                    e.printStackTrace();
                }
                if (options.getOutputFile() != null) {
                    options.getOutputFile().delete();
                }
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());
        }

View Full Code Here

    /**
     * {@inheritDoc}
     */
    public void run() throws FOrayException {
        final SessionConfig configuration = getOptions().getSessionConfig();
        final FOraySession session = FOraySpecific.makeFOraySession(
                configuration);

        final PrinterJob pj = PrinterJob.getPrinterJob();
        if (System.getProperty("dialog") != null) {
View Full Code Here

TOP

Related Classes of org.foray.core.SessionConfig

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.