Package org.apache.axis2.format
Interface ManagedDataSource
- All Superinterfaces:
jakarta.activation.DataSource
public interface ManagedDataSource
extends jakarta.activation.DataSource
Managed data source.
This type of data source keeps track of the streams that have been
requested using
DataSource.getInputStream() and allows to
forcibly close these streams. Any existing data source can be converted
to a managed data source using ManagedDataSourceFactory.create(DataSource).-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Close all streams that have been requested from this data source and that are not yet closed.Methods inherited from interface jakarta.activation.DataSource
getContentType, getInputStream, getName, getOutputStream
-
Method Details
-
destroy
void destroy()Close all streams that have been requested from this data source and that are not yet closed.
-