Write the data to an OutputStream.
If the DataHandler was created with a DataSource, writeTo retrieves the InputStream and copies the bytes from the InputStream to the OutputStream passed in.
If the DataHandler was created with an object, writeTo
retrieves the DataContentHandler for the object's type.
If the DataContentHandler was found, it calls the
writeTo method on the DataContentHandler.
os | the OutputStream to write to |
IOException | if an I/O error occurs |
Diagram: Data