Class AbstractFileSystemSource

  • All Implemented Interfaces:
    io.annot8.core.components.Annot8Component, io.annot8.core.components.Source, AutoCloseable
    Direct Known Subclasses:
    FileSystemSource

    @CreatesContent(io.annot8.common.data.content.FileContent.class)
    public abstract class AbstractFileSystemSource
    extends io.annot8.components.base.components.AbstractComponent
    implements io.annot8.core.components.Source
    • Constructor Detail

      • AbstractFileSystemSource

        public AbstractFileSystemSource()
    • Method Detail

      • configure

        public void configure​(io.annot8.core.context.Context context)
                       throws io.annot8.core.exceptions.BadConfigurationException,
                              io.annot8.core.exceptions.MissingResourceException
        Specified by:
        configure in interface io.annot8.core.components.Annot8Component
        Overrides:
        configure in class io.annot8.components.base.components.AbstractComponent
        Throws:
        io.annot8.core.exceptions.BadConfigurationException
        io.annot8.core.exceptions.MissingResourceException
      • getAcceptedFilePatterns

        public Set<Pattern> getAcceptedFilePatterns()
      • createItem

        protected boolean createItem​(io.annot8.core.data.ItemFactory itemFactory,
                                     Path path)