|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
org.dmonix.cipher.DMCipherOutputStream
The base class for all ciphered output streams.
Copyright: Copyright (c) 2004
Company: dmonix.org
| Field Summary |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
protected |
DMCipherOutputStream(java.io.OutputStream ostream,
java.lang.String cipherAlgorithm)
|
| Method Summary | |
java.lang.Object |
clone()
THIS METHOD IS NOT SUPPORTED! |
void |
close()
Closes this output stream and releases any system resources associated with the stream. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
protected void |
initCipher(java.security.Key key)
Init the cipher. |
protected void |
initCipher(java.security.Key key,
java.security.spec.AlgorithmParameterSpec param)
Init the cipher. |
void |
write(byte[] b)
Writes b.length bytes to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Writes the specified byte to this output stream. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DMCipherOutputStream(java.io.OutputStream ostream,
java.lang.String cipherAlgorithm)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
| Method Detail |
public final java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - The exception is always thrown
public void close()
throws java.io.IOException
java.io.IOException
public void flush()
throws java.io.IOException
java.io.IOException
public void write(byte[] b)
throws java.io.IOException
b.length bytes to this output stream.
b - the data to be written.
java.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes from the specified byte array starting at offset off to this output stream.
b - the data.off - the start offset in the data.len - the number of bytes to write.
java.io.IOException
public void write(int b)
throws java.io.IOException
b - the data
java.io.IOException
protected void initCipher(java.security.Key key)
throws java.security.InvalidKeyException
key - The key for the cipher
java.security.InvalidKeyException
protected void initCipher(java.security.Key key,
java.security.spec.AlgorithmParameterSpec param)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
key - The key for the cipherparam - Cipher parameters
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||