public final class FetchWriter
extends java.lang.Object
FetchItem to the fetch.txt file on the filesystem| Modifier and Type | Method and Description |
|---|---|
static void |
writeFetchFile(java.util.List<FetchItem> itemsToFetch,
java.nio.file.Path outputDir,
java.nio.file.Path bagitRootDir,
java.nio.charset.Charset charsetName)
Write the fetch.txt file to the outputDir with the specified encoding (charsetName)
|
public static void writeFetchFile(java.util.List<FetchItem> itemsToFetch, java.nio.file.Path outputDir, java.nio.file.Path bagitRootDir, java.nio.charset.Charset charsetName) throws java.io.IOException
itemsToFetch - the list of FetchItems to write into the fetch.txtoutputDir - the root of the bagbagitRootDir - the path to the root of the bagcharsetName - the name of the encoding for the filejava.io.IOException - if there was a problem writing a file