Interface ManagedDataSource

All Superinterfaces:
DataSource

public interface ManagedDataSource extends 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 Details

    • destroy

      void destroy()
      Close all streams that have been requested from this data source and that are not yet closed.