Package org.apache.poi.poifs.crypt.temp
Class EncryptedTempData
java.lang.Object
org.apache.poi.poifs.crypt.temp.EncryptedTempData
EncryptedTempData can be used to buffer binary data in a secure way, by using encrypted temp files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Removes the temporarily backing fileReturns the input stream for reading the previously written encrypted dataReturns the output stream for writing the data.
-
Constructor Details
-
EncryptedTempData
- Throws:
IOException
-
-
Method Details
-
getOutputStream
Returns the output stream for writing the data.Make sure to close it, otherwise the last cipher block is not written completely.
- Returns:
- the outputstream
- Throws:
IOException
- if the writing to the underlying file fails
-
getInputStream
Returns the input stream for reading the previously written encrypted data- Returns:
- the inputstream
- Throws:
IOException
- if the reading of the underlying file fails
-
dispose
public void dispose()Removes the temporarily backing file
-