public class BlowfishOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
BlowfishOutputStream(byte[] key,
int nOfs,
int nLen,
java.io.OutputStream os)
Default constructor.
|
BlowfishOutputStream(java.lang.String sPassPhrase,
java.io.OutputStream os)
Deprecated.
due to the restrictions in usage and the discarding of some
original key material it is highly recommended not to use it anymore
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(int nByte) |
public BlowfishOutputStream(byte[] key,
int nOfs,
int nLen,
java.io.OutputStream os)
throws java.io.IOException
key - key buffernOfs - where the key material startsnLen - size of the key material (in bytes)os - the output stream to which bytes will be writtenjava.io.IOException - if the IV couldn't be writtenpublic BlowfishOutputStream(java.lang.String sPassPhrase,
java.io.OutputStream os)
throws java.io.IOException
sPassPhrase - the passphraseos - the output stream to which bytes will be writtenjava.io.IOException - if the IV couldn't be writtenpublic void write(int nByte)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionOutputStream.write(int)public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionInputStream.close()public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionOutputStream.flush()