public class EncryptingFileIO extends java.lang.Object implements FileIO, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,InputFile> |
bulkDecrypt(java.lang.Iterable<? extends ContentFile<?>> files) |
void |
close()
Close File IO to release underlying resources.
|
static EncryptingFileIO |
combine(FileIO io,
EncryptionManager em) |
void |
deleteFile(java.lang.String path)
Delete the file at the given path.
|
EncryptionManager |
encryptionManager() |
InputFile |
newDecryptingInputFile(java.lang.String path,
java.nio.ByteBuffer buffer) |
InputFile |
newDecryptingInputFile(java.lang.String path,
long length,
java.nio.ByteBuffer buffer) |
EncryptedOutputFile |
newEncryptingOutputFile(java.lang.String path) |
InputFile |
newInputFile(DataFile file) |
InputFile |
newInputFile(DeleteFile file) |
InputFile |
newInputFile(ManifestFile manifest) |
InputFile |
newInputFile(java.lang.String path)
Get a
InputFile instance to read bytes from the file at the given path. |
InputFile |
newInputFile(java.lang.String path,
long length)
Get a
InputFile instance to read bytes from the file at the given path, with a known
file length. |
OutputFile |
newOutputFile(java.lang.String path)
Get a
OutputFile instance to write bytes to the file at the given path. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteFile, deleteFile, initialize, properties
public static EncryptingFileIO combine(FileIO io, EncryptionManager em)
public java.util.Map<java.lang.String,InputFile> bulkDecrypt(java.lang.Iterable<? extends ContentFile<?>> files)
public EncryptionManager encryptionManager()
public InputFile newInputFile(java.lang.String path)
FileIO
InputFile
instance to read bytes from the file at the given path.newInputFile
in interface FileIO
public InputFile newInputFile(java.lang.String path, long length)
FileIO
InputFile
instance to read bytes from the file at the given path, with a known
file length.newInputFile
in interface FileIO
public InputFile newInputFile(DataFile file)
newInputFile
in interface FileIO
public InputFile newInputFile(DeleteFile file)
newInputFile
in interface FileIO
public InputFile newInputFile(ManifestFile manifest)
newInputFile
in interface FileIO
public InputFile newDecryptingInputFile(java.lang.String path, java.nio.ByteBuffer buffer)
public InputFile newDecryptingInputFile(java.lang.String path, long length, java.nio.ByteBuffer buffer)
public OutputFile newOutputFile(java.lang.String path)
FileIO
OutputFile
instance to write bytes to the file at the given path.newOutputFile
in interface FileIO
public EncryptedOutputFile newEncryptingOutputFile(java.lang.String path)
public void deleteFile(java.lang.String path)
FileIO
deleteFile
in interface FileIO
public void close()
FileIO
Calling this method is only required when this FileIO instance is no longer expected to be used, and the resources it holds need to be explicitly released to avoid resource leaks.