Package org.foray.ps

Examples of org.foray.ps.PsServer4a


        } catch (final FileNotFoundException e1) {
            System.err.println("File cannot be opened for output: " + output);
            System.exit(1);
        }

        final PsServer4a psServer = new PsServer4a();
        final EncodingVector encoding = psServer.getPredefinedEncoding(encodingString);
        final EncodingVectorInputStream inputFilter = new EncodingVectorInputStream(inputStream, encoding);

        try {
            while (true) {
                final int inputByte = inputFilter.read();
View Full Code Here


        case PCL: {
            renderer = new PCLRenderer(logger, outputOptions);
            break;
        }
        case PS: {
            final PsServer psServer = new PsServer4a();
            renderer = new PSRenderer(logger, outputOptions, psServer);
            break;
        }
        case TXT: {
            renderer = new TXTRenderer(logger, outputOptions);
            break;
        }
        case MIF: {
            final MifBook mifBook = new org.foray.mif.MifBook(logger);
            renderer = new MIFConverter(mifBook, logger, outputOptions);
            break;
        }
        case XML: {
            renderer = new XMLRenderer(logger, outputOptions);
            break;
        }
        case SVG: {
            renderer = new SVGRenderer(logger, outputOptions, graphicServer);
            break;
        }
        default: {
            final PsServer psServer = new PsServer4a();
            final PdfDocument document = new org.foray.pdf.object.PDFDocument(outputStream, logger, psServer);
            renderer = new PDFRenderer(logger, outputOptions, document);
            break;
        }
        }
View Full Code Here

    /**
     * Make a standard PsServer instance for use in FOray.
     * @return The newly-created PsServer instance.
     */
    public static PsServer makePsServer() {
        return new PsServer4a();
    }
View Full Code Here

TOP

Related Classes of org.foray.ps.PsServer4a

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.