Package nl.knaw.dans.bagit.writer
Class BagitFileWriter
java.lang.Object
nl.knaw.dans.bagit.writer.BagitFileWriter
Responsible for writing the bagit.txt to the filesystem
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final ResourceBundle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeBagitFile
(Version version, Charset encoding, Path outputDir) Write the bagit.txt file in required UTF-8 encoding.
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
messages
-
-
Constructor Details
-
BagitFileWriter
private BagitFileWriter()
-
-
Method Details
-
writeBagitFile
public static void writeBagitFile(Version version, Charset encoding, Path outputDir) throws IOException Write the bagit.txt file in required UTF-8 encoding.- Parameters:
version
- the version of the bag to write outencoding
- the encoding of the tag filesoutputDir
- the root of the bag- Throws:
IOException
- if there was a problem writing the file
-