Uses of Class
nl.knaw.dans.bagit.domain.Bag
Packages that use Bag
Package
Description
-
Uses of Bag in nl.knaw.dans.bagit.conformance
Methods in nl.knaw.dans.bagit.conformance with parameters of type BagModifier and TypeMethodDescriptionstatic voidBagProfileChecker.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 voidBagLinter.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
Methods in nl.knaw.dans.bagit.creator that return BagModifier and TypeMethodDescriptionstatic BagBagCreator.bagInPlace(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) Creates a bag in place for version 0.97.static BagBagCreator.bagInPlace(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) Creates a bag in place for version 0.97.private static BagBagCreator.bagInPlace(Version version, Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) static BagBagCreator.createDotBagit(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) Creates a basic(only required elements) .bagit bag in place.static BagBagCreator.createDotBagit(Path root, Collection<SupportedAlgorithm> algorithms, boolean includeHidden, Metadata metadata) Creates a basic(only required elements) .bagit bag in place.Methods in nl.knaw.dans.bagit.creator with parameters of type BagModifier 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 voidBagCreator.createBagitFile(Bag bag) private static voidBagCreator.createMetadataFile(Bag bag, Metadata metadata) private static voidBagCreator.createPayloadManifests(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static voidBagCreator.createTagManifests(Bag bag, Collection<SupportedAlgorithm> algorithms, boolean includeHidden) private static voidBagCreator.moveDataFilesIfNeeded(Bag bag, boolean includeHidden) -
Uses of Bag in nl.knaw.dans.bagit.domain
Constructors in nl.knaw.dans.bagit.domain with parameters of type Bag -
Uses of Bag in nl.knaw.dans.bagit.reader
Methods in nl.knaw.dans.bagit.reader that return BagModifier and TypeMethodDescriptionRead the bag from the filesystem and create a bag objectMethods in nl.knaw.dans.bagit.reader with parameters of type BagModifier and TypeMethodDescription(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. -
Uses of Bag in nl.knaw.dans.bagit.util
Methods in nl.knaw.dans.bagit.util with parameters of type BagModifier and TypeMethodDescriptionstatic PathPathUtils.getBagitDir(Bag bag) With bagit version 2.0 (.bagit) bagit specific files are no longer at the bag root directory.static PathPathUtils.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
Methods in nl.knaw.dans.bagit.verify with parameters of type BagModifier and TypeMethodDescriptionstatic booleanBagVerifier.canQuickVerify(Bag bag) Determine if we can quickly verify by comparing the number of files and the total number of bytes expectedstatic booleanQuickVerifier.canQuickVerify(Bag bag) Determine if we can quickly verify by comparing the number of files and the total number of bytes expectedstatic voidMandatoryVerifier.checkPayloadDirectoryExists(Bag bag) Make sure the payload directory existsManifestVerifier.getAllFilesListedInManifests(Bag bag) private static StringQuickVerifier.getPayloadOxum(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.static voidBagVerifier.quicklyVerify(Bag bag) Quickly verify by comparing the number of files and the total number of bytes expectedstatic voidQuickVerifier.quicklyVerify(Bag bag) Quickly verify by comparing the number of files and the total number of bytes expectedvoidManifestVerifier.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
Methods in nl.knaw.dans.bagit.writer with parameters of type BagModifier and TypeMethodDescriptionBagWriter.updateTagManifests(Bag bag, Path newBagRootDir) static voidWrite the bag out to the specified directory.(package private) static PathPayloadWriter.writeVersionDependentPayloadFiles(Bag bag, Path outputDir)