Uses of Class
nl.knaw.dans.bagit.exceptions.InvalidBagMetadataException
-
Uses of InvalidBagMetadataException in nl.knaw.dans.bagit.conformance
Modifier and TypeMethodDescriptionstatic void
MetadataChecker.checkBagMetadata
(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static void
BagLinter.checkForExtraLines
(Path bagitFile, Collection<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static void
MetadataChecker.checkForPayloadOxumMetadata
(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) 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. -
Uses of InvalidBagMetadataException in nl.knaw.dans.bagit.reader
Modifier and TypeMethodDescriptionprivate static String[]
KeyValueReader.checkLineFormat
(String line, String splitRegex) Read the bag from the filesystem and create a bag objectBagitTextFileReader.readBagitTextFile
(Path bagitFile) Read the bagit.txt file and return the version and encoding.static List<AbstractMap.SimpleImmutableEntry<String,
String>> MetadataReader.readBagMetadata
(Path rootDir, Charset encoding) Reads the bag metadata file (bag-info.txt or package-info.txt) and returns it.static List<AbstractMap.SimpleImmutableEntry<String,
String>> KeyValueReader.readKeyValuesFromFile
(Path file, String splitRegex, Charset charset) Generic method to read key value pairs from the bagit files, like bagit.txt or bag-info.txt