@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
(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 fails
(java.io.IOException - 如果写入底层文件失败)
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- if the reading of the underlying file fails
(java.io.IOException - 如果基础文件的读取失败)
public void dispose()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.