Class AbstractDataSource

  • All Implemented Interfaces:
    DataSource
    Direct Known Subclasses:
    SimpleDataSource

    public abstract class AbstractDataSource
    extends java.lang.Object
    implements DataSource
    Abstract class that implements the DataSource interface. Implementor of DataSource is encouraged to extend this class to ensure to always be able to support new methods that might be introduced in the DataSource in the future. Note that since Java 8, using abstract class to solve the above scenario is no longer relevant. Instead, Java 8's default methods can be used.
    • Constructor Detail

      • AbstractDataSource

        public AbstractDataSource()
    • Method Detail

      • iterator

        @Nonnull
        public java.util.Iterator<Resource> iterator()
        Description copied from interface: DataSource
        Returns the data.
        Specified by:
        iterator in interface DataSource
        Returns:
        The iterator of the data.