public void writeDataHandler(DataHandler dataHandler, String contentID, boolean optimize) throws IOException, XMLStreamException { writeBase64(writer, dataHandler); }
public void writeDataHandler(DataHandlerProvider dataHandlerProvider, String contentID, boolean optimize) throws IOException, XMLStreamException { writeBase64(writer, dataHandlerProvider.getDataHandler()); } };
public void writeDataHandler(DataHandler dataHandler, String contentID, boolean optimize) throws IOException, XMLStreamException { contentID = processDataHandler(dataHandler, contentID, optimize); if (contentID != null) { writeXOPInclude(contentID); } else { XMLStreamWriterUtils.writeBase64(parent, dataHandler); } }
public void writeDataHandler(DataHandlerProvider dataHandlerProvider, String contentID, boolean optimize) throws IOException, XMLStreamException { contentID = processDataHandler(dataHandlerProvider, contentID, optimize); if (contentID != null) { writeXOPInclude(contentID); } else { XMLStreamWriterUtils.writeBase64(parent, dataHandlerProvider.getDataHandler()); } }
dataHandlerWriter.writeDataHandler(dataHandler, contentID, optimize); } else { writeBase64(writer, dataHandler);
/** * Write binary content to the stream. This method is similar to * {@link #writeDataHandler(XMLStreamWriter, DataHandler, String, boolean)}, * but supports deferred loading of the data handler. * * @param writer * the stream writer to write the data to * @param dataHandlerProvider * the binary content to write * @param contentID * an existing content ID for the binary data * @param optimize * indicates whether the content is eligible for optimization * @throws IOException * if an error occurs while reading from the data handler * @throws XMLStreamException * if an error occurs while writing to the underlying stream */ public static void writeDataHandler(XMLStreamWriter writer, DataHandlerProvider dataHandlerProvider, String contentID, boolean optimize) throws IOException, XMLStreamException { DataHandlerWriter dataHandlerWriter = internalGetDataHandlerWriter(writer); if (dataHandlerWriter != null) { dataHandlerWriter.writeDataHandler(dataHandlerProvider, contentID, optimize); } else { writeBase64(writer, dataHandlerProvider.getDataHandler()); } }