public final class ManifestChecker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkManifests(Version version,
java.nio.file.Path bagitDir,
java.nio.charset.Charset encoding,
java.util.Set<BagitWarning> warnings,
java.util.Collection<BagitWarning> warningsToIgnore)
Check for all the manifest specific potential problems
|
public static void checkManifests(Version version, java.nio.file.Path bagitDir, java.nio.charset.Charset encoding, java.util.Set<BagitWarning> warnings, java.util.Collection<BagitWarning> warningsToIgnore) throws java.io.IOException, InvalidBagitFileFormatException, MaliciousPathException, UnsupportedAlgorithmException
version - the version of the bag we are checkingbagitDir - the directory where the manifests are storedencoding - the encoding of the manifestswarnings - the set of warnings that will be appended to while checkingwarningsToIgnore - the set of warnings to ignorejava.io.IOException - if there is a problem reading a file (because it doesn't exist)InvalidBagitFileFormatException - if one (or more) of the files does not match the formatting as specified in the specificationMaliciousPathException - if someone crafted the bag to specifically try and write outside the bag directoryUnsupportedAlgorithmException - if a manifest uses an algorithm that the computer doesn't know how to use