throw new SAXOutputException(ex);
}
}
public void writeDataHandler(DataHandler dataHandler, String contentID, boolean optimize) throws OutputException {
Base64EncodingWriterOutputStream out = new Base64EncodingWriterOutputStream(new ContentHandlerWriter(contentHandler), 4096, true);
try {
dataHandler.writeTo(out);
out.complete();
} catch (IOException ex) {
Throwable cause = ex.getCause();
SAXException saxException;
if (cause instanceof SAXException) {
saxException = (SAXException)cause;