Package nl.knaw.dans.bagit.verify
Class PayloadFileExistsInAtLeastOneManifestVistor
java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
nl.knaw.dans.bagit.verify.AbstractPayloadFileExistsInManifestsVistor
nl.knaw.dans.bagit.verify.PayloadFileExistsInAtLeastOneManifestVistor
- All Implemented Interfaces:
FileVisitor<Path>
public class PayloadFileExistsInAtLeastOneManifestVistor
extends AbstractPayloadFileExistsInManifestsVistor
Implements
SimpleFileVisitor
to ensure that the encountered file is in one of the manifests.-
Field Summary
Fields inherited from class nl.knaw.dans.bagit.verify.AbstractPayloadFileExistsInManifestsVistor
ignoreHiddenFiles, logger
-
Constructor Summary
ConstructorDescriptionPayloadFileExistsInAtLeastOneManifestVistor
(Set<Path> filesListedInManifests, boolean ignoreHiddenFiles) -
Method Summary
Methods inherited from class nl.knaw.dans.bagit.verify.AbstractPayloadFileExistsInManifestsVistor
preVisitDirectory
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, visitFileFailed
-
Field Details
-
messages
-
filesListedInManifests
-
-
Constructor Details
-
PayloadFileExistsInAtLeastOneManifestVistor
-
-
Method Details
-
visitFile
public FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException, FileNotInManifestException - Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
FileNotInManifestException
-