Interface FileScanner

  • All Known Implementing Classes:
    SimpleFileScanner

    public interface FileScanner
    Interface to provide some standardized default methods
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void addAttrs​(java.nio.file.attribute.BasicFileAttributes attributes, DocumentImpl doc, boolean includeAccessed)
      A default, reusable and overridable means of adding file attributes to a document
    • Method Detail

      • addAttrs

        default void addAttrs​(java.nio.file.attribute.BasicFileAttributes attributes,
                              DocumentImpl doc,
                              boolean includeAccessed)
        A default, reusable and overridable means of adding file attributes to a document
        Parameters:
        attributes - The attributes of the scanned file as returned by Files.getFileAttributeView(Path, Class, LinkOption...)
        doc - The document representing the scanned file to which attributes should be added.
        includeAccessed - if true the file accessed time will also be used. This is often not desirable.