Uses of Class
nl.knaw.dans.bagit.exceptions.InvalidBagitFileFormatException
Packages that use InvalidBagitFileFormatException
Package
Description
-
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.conformance
Methods in nl.knaw.dans.bagit.conformance that throw InvalidBagitFileFormatExceptionModifier and TypeMethodDescriptionprivate static booleanManifestChecker.checkManifest(Path file, List<Path> payloadManifests, List<Path> tagManifests, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static voidManifestChecker.checkManifestPayload(Path manifestFile, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore, boolean isPayloadManifest) static voidManifestChecker.checkManifests(Version version, Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) Check for all the manifest specific potential problems(package private) static voidManifestChecker.checkManifestSets(Version version, List<Path> tagManifests, List<Path> payloadManifests, Set<BagitWarning> warnings, Charset encoding) (package private) static voidManifestChecker.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
Subclasses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.exceptionsModifier and TypeClassDescriptionclassClass 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
Methods in nl.knaw.dans.bagit.reader that throw InvalidBagitFileFormatExceptionModifier and TypeMethodDescriptionstatic PathTagFileReader.createFileFromManifest(Path bagRootDir, String path) Read the bag from the filesystem and create a bag object(package private) static voidManifestReader.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 ManifestManifestReader.readManifest(BagitAlgorithmNameToSupportedAlgorithmMapping nameMapping, Path manifestFile, Path bagRootDir, Charset charset) Reads a manifest file and converts it to aManifestobject.private static voidBagitTextFileReader.throwErrorIfByteOrderMarkIsPresent(Path bagitFile) (package private) static voidBagitTextFileReader.throwErrorIfLinesDoNotMatchStrict(List<String> lines) -
Uses of InvalidBagitFileFormatException in nl.knaw.dans.bagit.verify
Methods in nl.knaw.dans.bagit.verify that throw InvalidBagitFileFormatExceptionModifier and TypeMethodDescriptionManifestVerifier.getAllFilesListedInManifests(Bag bag) voidBagVerifier.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.voidSee 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.voidManifestVerifier.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.