Package nl.knaw.dans.bagit.conformance
Class MetadataChecker
java.lang.Object
nl.knaw.dans.bagit.conformance.MetadataChecker
Part of the BagIt conformance suite.
This checker checks the bag metadata (bag-info.txt) for various problems.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final ResourceBundle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkBagMetadata
(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static void
checkForPayloadOxumMetadata
(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
messages
-
-
Constructor Details
-
MetadataChecker
private MetadataChecker()
-
-
Method Details
-
checkBagMetadata
public static void checkBagMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) throws IOException, InvalidBagMetadataException -
checkForPayloadOxumMetadata
private static void checkForPayloadOxumMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) throws IOException, InvalidBagMetadataException
-