public final class FetchReader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<FetchItem> |
readFetch(java.nio.file.Path fetchFile,
java.nio.charset.Charset encoding,
java.nio.file.Path bagRootDir)
Reads a fetch.txt file
|
public static java.util.List<FetchItem> readFetch(java.nio.file.Path fetchFile, java.nio.charset.Charset encoding, java.nio.file.Path bagRootDir) throws java.io.IOException, MaliciousPathException, InvalidBagitFileFormatException
fetchFile - the specific fetch fileencoding - the encoding to read the file withbagRootDir - the root directory of the bagjava.io.IOException - if there is a problem reading a fileMaliciousPathException - if the path was crafted to point outside the bag directoryInvalidBagitFileFormatException - if the fetch format does not follow the bagit specification