Package org.axsl.output

Examples of org.axsl.output.OutputException


            write("%%BeginDefaults");
            write("%%EndDefaults");
            write("%%BeginProlog");
            write("%%EndProlog");
        } catch (final IOException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here


            write("%%Trailer");
            write("%%Pages: " + this.pagecount);
            write("%%EOF");
            this.out.flush();
        } catch (final IOException e) {
            throw new OutputException(e);
        }
        getLogger().debug("written out PostScript");
    }
View Full Code Here

    public void output(final OutputStream stream) throws OutputException {
        // Output the contents of bookComponent
        try {
            stream.write(this.bookComponent.mifContent().getBytes());
        } catch (final IOException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here

     */
    public void stopOutput() throws OutputException {
        try {
            render(0);
        } catch (final GalleyVisitorException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here

    public void stopOutput() throws OutputException {
        getLogger().info("writing out TEXT");
        try {
            this.getOutputStream().flush();
        } catch (final IOException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here

     */
    public void startOutput() throws OutputException {
        try {
            this.svgDocument = this.graphicServer.makeSvgDocument();
        } catch (final GraphicException e) {
            throw new OutputException(e.getMessage());
        }
        final ProcessingInstruction pi =
            this.svgDocument.createProcessingInstruction(
                         "xml",
                         " version=\"1.0\" encoding=\"ISO-8859-1\"");
View Full Code Here

        try {
            this.graphicServer.writeSvgDocument(this.svgDocument,
                    this.getOutputStream());
            this.getOutputStream().flush();
        } catch (final IOException e) {
            throw new OutputException(e);
        }

        this.svgDocument = null;
        this.svgRoot = null;
        this.currentPageG = null;
View Full Code Here

            this.pdfDoc.addDefaultFilter(filter);
        }
        try {
            this.pdfDoc.writeHeader();
        } catch (final PdfException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here

         * PageCollection.
         */
        try {
            renderDocumentNodes();
        } catch (final GalleyVisitorException e1) {
            throw new OutputException(e1);
        }
        renderDocumentMetadata();
        try {
            this.pdfDoc.close();
        } catch (final PdfException e) {
            throw new OutputException(e);
        }

        // this frees up memory and makes the renderer reusable
        this.pdfDoc = null;
        this.currentPage = null;
View Full Code Here

        }

        try {
            this.printerJob.print();
        } catch (final PrinterException e) {
            throw new OutputException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.axsl.output.OutputException

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.