Class AbstractFileSystemSource

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


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(io.annot8.core.context.Context context)  
      protected boolean createItem​(io.annot8.core.data.ItemFactory itemFactory, java.nio.file.Path path)  
      java.util.Set<java.util.regex.Pattern> getAcceptedFilePatterns​()  
      FileSystemSourceSettings getSettings​()  
      • Methods inherited from interface io.annot8.core.components.Annot8Component

        buildCapabilities, close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.annot8.core.components.Source

        read
    • 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 AbstractComponent
        Throws:
        io.annot8.core.exceptions.BadConfigurationException
        io.annot8.core.exceptions.MissingResourceException
      • getAcceptedFilePatterns

        public java.util.Set<java.util.regex.Pattern> getAcceptedFilePatterns​()
      • createItem

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