@Beta public class EncryptedTempData extends java.lang.Object
Constructor and Description |
---|
EncryptedTempData() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes the temporarily backing file
|
java.io.InputStream |
getInputStream()
Returns the input stream for reading the previously written encrypted data
|
java.io.OutputStream |
getOutputStream()
Returns the output stream for writing the data.
|
public EncryptedTempData() throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
Make sure to close it, otherwise the last cipher block is not written completely.
java.io.IOException
- if the writing to the underlying file failspublic java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if the reading of the underlying file failspublic void dispose()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.