public OutputStream getOutputStream () throws IOException

Get an OutputStream for this DataHandler to allow overwriting the underlying data. If the DataHandler was created with a DataSource, the DataSource's getOutputStream method is called. Otherwise, null is returned.

Returns:  the OutputStream

See also:
javax.activation.DataSource.getOutputStream, javax.activation.URLDataSource