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()
OutputFilePositionOutputStream to it.
If the file already exists, this will throw an exception.
create in interface OutputFilepublic PositionOutputStream createOrOverwrite()
OutputFilePositionOutputStream to it.
If the file already exists, this will not throw an exception and will replace the file.
createOrOverwrite in interface OutputFilepublic java.lang.String location()
OutputFilelocation in interface OutputFilepublic InputFile toInputFile()
OutputFileInputFile for the location of this output file.toInputFile in interface OutputFile