|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.tranche.streams.AESEncodingStream
public class AESEncodingStream
Encrypted file output stream.
| Constructor Summary | |
|---|---|
AESEncodingStream(java.lang.String passphrase,
byte[] salt,
int iterations,
java.io.OutputStream out)
|
|
AESEncodingStream(java.lang.String passphrase,
java.io.OutputStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the output stream. |
void |
flush()
Flush the output stream. |
BigHash |
getHash()
Get the hash of the file written to the output stream.. |
void |
write(byte[] b)
Write bytes to the output stream. |
void |
write(byte[] buf,
int off,
int len)
Write to the output stream. |
void |
write(int b)
Write a byte to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AESEncodingStream(java.lang.String passphrase,
java.io.OutputStream out)
throws java.io.IOException
passphrase - out -
java.io.IOException
public AESEncodingStream(java.lang.String passphrase,
byte[] salt,
int iterations,
java.io.OutputStream out)
throws java.io.IOException
passphrase - salt - iterations - out -
java.io.IOException| Method Detail |
|---|
public void write(byte[] buf,
int off,
int len)
throws java.io.IOException
Write to the output stream.
write in class java.io.OutputStreambuf - off - len -
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
Write bytes to the output stream.
write in class java.io.OutputStreamb -
java.io.IOException
public void write(int b)
throws java.io.IOException
Write a byte to the output stream.
write in class java.io.OutputStreamb -
java.io.IOException
public BigHash getHash()
throws java.io.IOException
Get the hash of the file written to the output stream..
java.io.IOException
public void close()
throws java.io.IOException
Close the output stream.
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
Flush the output stream.
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||