public class AesGcmOutputFile extends java.lang.Object implements OutputFile
Constructor and Description |
---|
AesGcmOutputFile(OutputFile targetFile,
byte[] dataKey,
byte[] fileAADPrefix) |
Modifier and Type | Method and Description |
---|---|
PositionOutputStream |
create()
Create a new file and return a
PositionOutputStream to it. |
PositionOutputStream |
createOrOverwrite()
Create a new file and return a
PositionOutputStream to it. |
java.lang.String |
location()
Return the location this output file will create.
|
InputFile |
toInputFile()
Return an
InputFile for the location of this output file. |
public AesGcmOutputFile(OutputFile targetFile, byte[] dataKey, byte[] fileAADPrefix)
public PositionOutputStream create()
OutputFile
PositionOutputStream
to it.
If the file already exists, this will throw an exception.
create
in interface OutputFile
public 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
public java.lang.String location()
OutputFile
location
in interface OutputFile
public InputFile toInputFile()
OutputFile
InputFile
for the location of this output file.toInputFile
in interface OutputFile