Package org.jesterj.ingest.scanners
Interface FileScanner
-
- All Known Implementing Classes:
SimpleFileScanner
public interface FileScannerInterface to provide some standardized default methods
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidaddAttrs(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 byFiles.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.
-
-