public final class MetadataWriter
extends java.lang.Object
Metadata to the filesystem| Modifier and Type | Method and Description |
|---|---|
static void |
writeBagMetadata(Metadata metadata,
Version version,
java.nio.file.Path outputDir,
java.nio.charset.Charset charsetName)
Write the bag-info.txt (or package-info.txt) file to the specified outputDir with specified encoding (charsetName)
|
public static void writeBagMetadata(Metadata metadata, Version version, java.nio.file.Path outputDir, java.nio.charset.Charset charsetName) throws java.io.IOException
metadata - the key value pair info in the bag-info.txt fileversion - the version of the bag you are writingoutputDir - the root of the bagcharsetName - the name of the encoding for the filejava.io.IOException - if there was a problem writing a file