Package org.apache.poi.poifs.crypt.temp
Class EncryptedTempData
- java.lang.Object
-
- org.apache.poi.poifs.crypt.temp.EncryptedTempData
-
-
Constructor Summary
Constructors Constructor Description EncryptedTempData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Removes the temporarily backing fileInputStream
getInputStream()
Returns the input stream for reading the previously written encrypted dataOutputStream
getOutputStream()
Returns the output stream for writing the data.
-
-
-
Constructor Detail
-
EncryptedTempData
public EncryptedTempData() throws IOException
- Throws:
IOException
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream() throws IOException
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
public InputStream getInputStream() throws IOException
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
-
-