Package nl.knaw.dans.bagit.creator
Class AbstractCreateManifestsVistor
- All Implemented Interfaces:
FileVisitor<Path>
- Direct Known Subclasses:
CreatePayloadManifestsVistor
,CreateTagManifestsVistor
An implementation of the
SimpleFileVisitor
class that optionally avoids hidden files.
Mainly used in BagCreator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
private static final org.slf4j.Logger
protected final Map<Manifest,
MessageDigest> private static final ResourceBundle
-
Constructor Summary
ConstructorDescriptionAbstractCreateManifestsVistor
(Map<Manifest, MessageDigest> manifestToMessageDigestMap, boolean includeHiddenFiles) -
Method Summary
Modifier and TypeMethodDescriptionabstractPreVisitDirectory
(Path dir, String directoryToIgnore) visitFile
(Path path, BasicFileAttributes attrs) Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFileFailed
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
messages
-
manifestToMessageDigestMap
-
includeHiddenFiles
protected final transient boolean includeHiddenFiles
-
-
Constructor Details
-
AbstractCreateManifestsVistor
public AbstractCreateManifestsVistor(Map<Manifest, MessageDigest> manifestToMessageDigestMap, boolean includeHiddenFiles)
-
-
Method Details
-
abstractPreVisitDirectory
public FileVisitResult abstractPreVisitDirectory(Path dir, String directoryToIgnore) throws IOException - Throws:
IOException
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-