public interface NativeEncryptionOutputFile extends EncryptedOutputFile, OutputFile
EncryptedOutputFile
that can be used for format-native encryption.Modifier and Type | Method and Description |
---|---|
default PositionOutputStream |
create()
Create a new file and return a
PositionOutputStream to it. |
default PositionOutputStream |
createOrOverwrite()
Create a new file and return a
PositionOutputStream to it. |
NativeEncryptionKeyMetadata |
keyMetadata()
Metadata about the encryption key that is being used to encrypt the associated
EncryptedOutputFile.encryptingOutputFile() . |
default java.lang.String |
location()
Return the location this output file will create.
|
OutputFile |
plainOutputFile()
An
OutputFile instance for the underlying (plaintext) output stream. |
default InputFile |
toInputFile()
Return an
InputFile for the location of this output file. |
encryptingOutputFile
NativeEncryptionKeyMetadata keyMetadata()
EncryptedOutputFile
EncryptedOutputFile.encryptingOutputFile()
.keyMetadata
in interface EncryptedOutputFile
OutputFile plainOutputFile()
OutputFile
instance for the underlying (plaintext) output stream.default PositionOutputStream create()
OutputFile
PositionOutputStream
to it.
If the file already exists, this will throw an exception.
create
in interface OutputFile
default PositionOutputStream createOrOverwrite()
OutputFile
PositionOutputStream
to it.
If the file already exists, this will not throw an exception and will replace the file.
createOrOverwrite
in interface OutputFile
default java.lang.String location()
OutputFile
location
in interface OutputFile
default InputFile toInputFile()
OutputFile
InputFile
for the location of this output file.toInputFile
in interface OutputFile