public class FileTransaction extends Object
Constructor and Description |
---|
FileTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
copyFile(Path source,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
void |
createFile(String content,
Path destination,
List<ChecksumAlgorithm> checksumAlgorithms) |
public FileTransaction()
public void commit() throws TransactionException
TransactionException
public void copyFile(Path source, Path destination, List<ChecksumAlgorithm> checksumAlgorithms)
source
- destination
- checksumAlgorithms
- The checksum algorithmspublic void createFile(String content, Path destination, List<ChecksumAlgorithm> checksumAlgorithms)
content
- destination
- checksumAlgorithms
- Checksum algorithmsCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.