Uses of Class
nl.knaw.dans.bagit.domain.Bag
Package
Description
-
Uses of Bag in nl.knaw.dans.bagit.conformance
Modifier and TypeMethodDescriptionstatic void
BagProfileChecker.bagConformsToProfile
(InputStream jsonProfile, Bag bag) Check a bag against a bagit-profile as described by https://github.com/ruebot/bagit-profiles
Note: This implementation does not check the Serialization part of the profile!static void
BagLinter.checkAgainstProfile
(InputStream jsonProfile, Bag bag) Check a bag against a bagit-profile as described by https://github.com/ruebot/bagit-profiles
Note: This implementation does not check the Serialization part of the profile! -
Uses of Bag in nl.knaw.dans.bagit.creator
Modifier and TypeMethodDescriptionstatic Bag
BagCreator.bagInPlace
(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) Creates a bag in place for version 0.97.static Bag
BagCreator.bagInPlace
(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) Creates a bag in place for version 0.97.private static Bag
BagCreator.bagInPlace
(Version version, Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) static Bag
BagCreator.createDotBagit
(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) Creates a basic(only required elements) .bagit bag in place.static Bag
BagCreator.createDotBagit
(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) Creates a basic(only required elements) .bagit bag in place.Modifier and TypeMethodDescriptionprivate static Map<Manifest,
MessageDigest> BagCreator.calculatePayloadManifests
(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static Map<Manifest,
MessageDigest> BagCreator.calculateTagManifests
(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static void
BagCreator.createBagitFile
(Bag bag) private static void
BagCreator.createMetadataFile
(Bag bag, Metadata metadata) private static void
BagCreator.createPayloadManifests
(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static void
BagCreator.createTagManifests
(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static void
BagCreator.moveDataFilesIfNeeded
(Bag bag, boolean includeHidden) -
Uses of Bag in nl.knaw.dans.bagit.domain
-
Uses of Bag in nl.knaw.dans.bagit.reader
Modifier and TypeMethodDescriptionRead the bag from the filesystem and create a bag objectModifier and TypeMethodDescription(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. -
Uses of Bag in nl.knaw.dans.bagit.util
Modifier and TypeMethodDescriptionstatic Path
PathUtils.getBagitDir
(Bag bag) With bagit version 2.0 (.bagit) bagit specific files are no longer at the bag root directory.static Path
PathUtils.getDataDir
(Bag bag) With bagit version 2.0 (.bagit) payload files are no longer in the "data" directory. -
Uses of Bag in nl.knaw.dans.bagit.verify
Modifier and TypeMethodDescriptionstatic boolean
BagVerifier.canQuickVerify
(Bag bag) Determine if we can quickly verify by comparing the number of files and the total number of bytes expectedstatic boolean
QuickVerifier.canQuickVerify
(Bag bag) Determine if we can quickly verify by comparing the number of files and the total number of bytes expectedstatic void
MandatoryVerifier.checkPayloadDirectoryExists
(Bag bag) Make sure the payload directory existsManifestVerifier.getAllFilesListedInManifests
(Bag bag) private static String
QuickVerifier.getPayloadOxum
(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.static void
BagVerifier.quicklyVerify
(Bag bag) Quickly verify by comparing the number of files and the total number of bytes expectedstatic void
QuickVerifier.quicklyVerify
(Bag bag) Quickly verify by comparing the number of files and the total number of bytes expectedvoid
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. -
Uses of Bag in nl.knaw.dans.bagit.writer
Modifier and TypeMethodDescriptionBagWriter.updateTagManifests
(Bag bag, Path newBagRootDir) static void
Write the bag out to the specified directory.(package private) static Path
PayloadWriter.writeVersionDependentPayloadFiles
(Bag bag, Path outputDir)