public class BagCreator
extends java.lang.Object
| Constructor and Description |
|---|
BagCreator() |
| Modifier and Type | Method and Description |
|---|---|
static Bag |
bagInPlace(java.io.File root,
SupportedAlgorithms algorithm,
boolean includeHidden)
Creates a basic(only required elements) bag in place.
|
protected static void |
moveFilesToDataDir(java.io.File[] files,
java.io.File dataDir) |
public static Bag bagInPlace(java.io.File root, SupportedAlgorithms algorithm, boolean includeHidden) throws java.security.NoSuchAlgorithmException, java.io.IOException
algorithm - - digest algorithm name, not bagit algorithm namejava.security.NoSuchAlgorithmExceptionjava.io.IOExceptionprotected static void moveFilesToDataDir(java.io.File[] files,
java.io.File dataDir)
throws java.io.IOException
java.io.IOException