Uses of Class
nl.knaw.dans.bagit.exceptions.InvalidBagitFileFormatException
Package
Description
-
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.conformance
Modifier and TypeMethodDescriptionprivate static boolean
ManifestChecker.checkManifest
(Path file, List<Path> payloadManifests, List<Path> tagManifests, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static void
ManifestChecker.checkManifestPayload
(Path manifestFile, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore, boolean isPayloadManifest) static void
ManifestChecker.checkManifests
(Version version, Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) Check for all the manifest specific potential problems(package private) static void
ManifestChecker.checkManifestSets
(Version version, List<Path> tagManifests, List<Path> payloadManifests, Set<BagitWarning> warnings, Charset encoding) (package private) static void
ManifestChecker.checkManifestsListSameSetOfFiles
(Set<BagitWarning> warnings, List<Path> manifestPaths, Charset charset) static Set<BagitWarning>
The BagIt specification is very flexible in what it allows which leads to situations where something may be technically allowed, but should be discouraged.static Set<BagitWarning>
BagLinter.lintBag
(Path rootDir, Collection<BagitWarning> warningsToIgnore) The BagIt specification is very flexible in what it allows which leads to situations where something may be technically allowed, but should be discouraged.(package private) static String
-
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.exceptions
Modifier and TypeClassDescriptionclass
Class to represent an error when the bag metadata file does not conform to the bagit spec, namely:
<KEY>:<VALUE>
or -
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.reader
Modifier and TypeMethodDescriptionstatic Path
TagFileReader.createFileFromManifest
(Path bagRootDir, String path) Read the bag from the filesystem and create a bag object(package private) static void
ManifestReader.readAllManifests
(BagitAlgorithmNameToSupportedAlgorithmMapping nameMapping, Path rootDir, Bag bag) Finds and reads all manifest files in the rootDir and adds them to the given bag.BagitTextFileReader.readBagitTextFile
(Path bagitFile) Read the bagit.txt file and return the version and encoding.ManifestReader.readChecksumFileMap
(Path manifestFile, Path bagRootDir, Charset charset) Reads a fetch.txt filestatic Manifest
ManifestReader.readManifest
(BagitAlgorithmNameToSupportedAlgorithmMapping nameMapping, Path manifestFile, Path bagRootDir, Charset charset) Reads a manifest file and converts it to aManifest
object.private static void
BagitTextFileReader.throwErrorIfByteOrderMarkIsPresent
(Path bagitFile) (package private) static void
BagitTextFileReader.throwErrorIfLinesDoNotMatchStrict
(List<String> lines) -
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.verify
Modifier and TypeMethodDescriptionManifestVerifier.getAllFilesListedInManifests
(Bag bag) void
BagVerifier.isComplete
(Bag bag, boolean ignoreHiddenFiles) See https://tools.ietf.org/html/draft-kunze-bagit-13#section-3
A bag is complete if
every element is present every file in the payload manifest(s) are present every file in the tag manifest(s) are present.void
See https://tools.ietf.org/html/draft-kunze-bagit-13#section-3
A bag is valid if the bag is complete and every checksum has been verified against the contents of its corresponding file.void
ManifestVerifier.verifyManifests
(Bag bag, boolean ignoreHiddenFiles) Verify that all the files in the payload directory are listed in the payload manifest and all files listed in all manifests exist.