java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class SymmetricKey.EtaEncryptingStream
extends java.io.OutputStream
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Calls
end(), if wasn't called before, and closes undelying stream. |
void |
end() |
Finishes encryption and writes down HMAC record.
|
void |
write(int plain) |
public void end()
throws java.io.IOException
EOFException. Does not close the underlying output stream!java.io.IOExceptionpublic void close()
throws java.io.IOException
end(), if wasn't called before, and closes undelying stream. Therefore,
it is not possible to use the undelying stream after calling it.close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int plain)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException