public interface DataHandlerExt
InputStream readOnce() throws IOException
InputStreamthat consumes the content of this data handler. This method is similar to
DataHandler.getInputStream()except that it can be invoked only once. If the content has not been buffered yet, then the implementation may choose to enable streaming of the content.
The implementation ensures that after the returned input steam is consumed, the data handler
will be in the same state as after a call to
IOException- if an error occurs
void purgeDataSource() throws IOException
Copyright © The Apache Software Foundation. All Rights Reserved.