Search in sources :

Example 1 with ProcessingException

use of org.apache.cocoon.pipeline.ProcessingException in project syncope by apache.

the class FopSerializer method setOutputStream.

@Override
public void setOutputStream(final OutputStream outputStream) {
    try {
        Fop fop = FOP_FACTORY.newFop(this.outputFormat, outputStream);
        ContentHandler fopContentHandler = fop.getDefaultHandler();
        this.setContentHandler(fopContentHandler);
    } catch (FOPException e) {
        throw new ProcessingException("Impossible to initialize FOPSerializer", e);
    }
}
Also used : FOPException(org.apache.fop.apps.FOPException) Fop(org.apache.fop.apps.Fop) ContentHandler(org.xml.sax.ContentHandler) ProcessingException(org.apache.cocoon.pipeline.ProcessingException)

Aggregations

ProcessingException (org.apache.cocoon.pipeline.ProcessingException)1 FOPException (org.apache.fop.apps.FOPException)1 Fop (org.apache.fop.apps.Fop)1 ContentHandler (org.xml.sax.ContentHandler)1