public class ManifestVerifier extends Object
Modifier and Type | Class and Description |
---|---|
class |
ManifestVerifier.ResultEntry |
static class |
ManifestVerifier.State |
Modifier and Type | Field and Description |
---|---|
static char |
DELIM |
Constructor and Description |
---|
ManifestVerifier(File file0,
File file1) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEntry(String line,
Map<String,String> entries) |
protected String |
fileOf(String name) |
void |
report(OutputStream out) |
Iterator<ManifestVerifier.ResultEntry> |
resultEntries() |
protected String |
titleOf(String name) |
void |
verify()
This method checks the provided manifest files for:
same number of manifest entries
equal checksums per entry
|
void |
verify(String... filters)
This method checks the provided manifest files for:
same number of manifest entries
equal checksums per entry
|
public static final char DELIM
public void report(OutputStream out)
public Iterator<ManifestVerifier.ResultEntry> resultEntries()
public void verify(String... filters) throws ManifestVerifyException
filters
- List of names that if found in the manifests will be ignored.ManifestVerifyException
- if files differ in size or checksumspublic void verify() throws ManifestVerifyException
ManifestVerifyException
- if files differ in size or checksumsCopyright © 2009–2014 DuraSpace. All rights reserved.