public class BagReader
extends java.lang.Object
| Constructor and Description |
|---|
BagReader() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.io.File[] |
getAllManifestFiles(java.io.File rootDir) |
static Bag |
read(java.io.File rootDir)
Read the bag from the filesystem and create a bag object
|
static Bag |
readAllManifests(java.io.File rootDir,
Bag bag) |
static Bag |
readBagInfo(java.io.File bagInfoFile,
Bag bag) |
static Bag |
readBagitTextFile(java.io.File bagitFile,
Bag bag) |
protected static java.util.HashMap<java.io.File,java.lang.String> |
readChecksumFileMap(java.io.File manifestFile) |
static Bag |
readFetch(java.io.File fetchFile,
Bag bag) |
protected static java.util.LinkedHashMap<java.lang.String,java.lang.String> |
readKeyValueMapFromFile(java.io.File file,
java.lang.String splitRegex) |
static Manifest |
readManifest(java.io.File manifestFile) |
public static Bag read(java.io.File rootDir) throws java.io.IOException
java.io.IOExceptionpublic static Bag readBagitTextFile(java.io.File bagitFile, Bag bag) throws java.io.IOException
java.io.IOExceptionpublic static Bag readAllManifests(java.io.File rootDir, Bag bag) throws java.io.IOException
java.io.IOExceptionprotected static java.io.File[] getAllManifestFiles(java.io.File rootDir)
public static Manifest readManifest(java.io.File manifestFile) throws java.io.IOException
java.io.IOExceptionprotected static java.util.HashMap<java.io.File,java.lang.String> readChecksumFileMap(java.io.File manifestFile)
throws java.io.IOException
java.io.IOExceptionpublic static Bag readBagInfo(java.io.File bagInfoFile, Bag bag) throws java.io.IOException
java.io.IOExceptionpublic static Bag readFetch(java.io.File fetchFile, Bag bag) throws java.io.IOException
java.io.IOExceptionprotected static java.util.LinkedHashMap<java.lang.String,java.lang.String> readKeyValueMapFromFile(java.io.File file,
java.lang.String splitRegex)
throws java.io.IOException
java.io.IOException