Uses of Class
nl.knaw.dans.bagit.exceptions.InvalidBagMetadataException
Packages that use InvalidBagMetadataException
-
Uses of InvalidBagMetadataException in nl.knaw.dans.bagit.conformance
Methods in nl.knaw.dans.bagit.conformance that throw InvalidBagMetadataExceptionModifier and TypeMethodDescriptionstatic voidMetadataChecker.checkBagMetadata(Path bagitDir, Charset encoding, Set<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static voidBagLinter.checkForExtraLines(Path bagitFile, Collection<BagitWarning> warnings, Collection<BagitWarning> warningsToIgnore) private static voidMetadataChecker.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
Methods in nl.knaw.dans.bagit.reader that throw InvalidBagMetadataExceptionModifier 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