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, waitdeleteFile, deleteFile, initialize, propertiespublic 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)
FileIOInputFile instance to read bytes from the file at the given path.newInputFile in interface FileIOpublic InputFile newInputFile(java.lang.String path, long length)
FileIOInputFile instance to read bytes from the file at the given path, with a known
file length.newInputFile in interface FileIOpublic InputFile newInputFile(DataFile file)
newInputFile in interface FileIOpublic InputFile newInputFile(DeleteFile file)
newInputFile in interface FileIOpublic InputFile newInputFile(ManifestFile manifest)
newInputFile in interface FileIOpublic 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)
FileIOOutputFile instance to write bytes to the file at the given path.newOutputFile in interface FileIOpublic EncryptedOutputFile newEncryptingOutputFile(java.lang.String path)
public void deleteFile(java.lang.String path)
FileIOdeleteFile in interface FileIOpublic void close()
FileIOCalling 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.