Examples of PioneerLS


Examples of org.foray.pioneer.PioneerLS

    public AreaTree buildAreaTree(final String file) throws FOrayException {
        final FoDocumentReader foReader = FoDocumentReader.getInstance();
        final FOTreeBuilder foTree = foReader.buildFoTree(file);
        final Root root = foTree.getRootFo();
        final AreaTree areaTree = this.areaTreeFactory.makeAreaTree(root);
        final PioneerLS layout = this.layoutFactory.makeLayout();
        final Iterator<PageSequence> iterator = root.getPageSequenceIterator();
        while (iterator.hasNext()) {
            final PageSequence pageSequence = iterator.next();
            try {
                final PageCollection collection = areaTree.makePageCollection(
                        pageSequence);
                layout.formatPageSequence(collection);
            } catch (final AreaTreeException e) {
                throw new FOrayException(e);
            }
        }
        return areaTree;
View Full Code Here

Examples of org.foray.pioneer.PioneerLS

         * LayoutStrategy is an optional parameter. Set it to null to have the
         * system use the default.
         * Targets that do not need an OutputStream should set that parameter
         * to null.
         */
        final LayoutStrategy layout = new PioneerLS(session.getLogger());
        final FOrayTarget target = new FOrayTarget(document, outputTarget,
                layout, outputStream);

        /*
         * Everything is now ready to go. There are two different processing
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.