public final class QuickVerifier
extends java.lang.Object
BagVerifier| Modifier and Type | Method and Description |
|---|---|
static boolean |
canQuickVerify(Bag bag)
Determine if we can quickly verify by comparing the number of files and the total number of bytes expected
|
static void |
quicklyVerify(Bag bag)
Quickly verify by comparing the number of files and the total number of bytes expected
|
public static boolean canQuickVerify(Bag bag)
bag - the Bag object you wish to checkpublic static void quicklyVerify(Bag bag) throws java.io.IOException, InvalidPayloadOxumException
bag - the bag to verify by payload-oxumjava.io.IOException - if there is an error reading a fileInvalidPayloadOxumException - if either the total bytes or the number of files
calculated for the payload directory of the bag is different than the supplied valuesPayloadOxumDoesNotExistException - if the bag does not contain a payload-oxum.
To check, run BagVerifier.canQuickVerify(gov.loc.repository.bagit.domain.Bag)