ro.raducora.utils.encryption.stream
Class EncryptedOutputStream
java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--ro.raducora.utils.encryption.stream.EncryptedOutputStream
- public class EncryptedOutputStream- extends java.io.FilterOutputStream
- Author:
- Radu Coravu
 
| Fields inherited from class java.io.FilterOutputStream | 
| out | 
 
 
| Method Summary | 
|  void | write(byte[] b)Write byte[].
 | 
|  void | write(byte[] b,
      int off,
      int len)Write byte[].
 | 
|  void | write(int b)Write one byte.
 | 
 
| Methods inherited from class java.io.FilterOutputStream | 
| close, flush | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
EncryptedOutputStream
public EncryptedOutputStream(java.io.OutputStream output,
                             StreamEncryptionKey key)
- Constructor.
 
- Parameters:
- output- the OutputStream to listen to
- key- the key to use in encripting the output
write
public void write(byte[] b)
           throws java.io.IOException
- Write byte[].
 
- 
- Overrides:
- writein class- java.io.FilterOutputStream
 
- 
- java.io.IOException
 
write
public void write(int b)
           throws java.io.IOException
- Write one byte.
 
- 
- Overrides:
- writein class- java.io.FilterOutputStream
 
- 
- java.io.IOException
 
write
public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
- Write byte[].
 
- 
- Overrides:
- writein class- java.io.FilterOutputStream
 
- 
- java.io.IOException
 
© Copyright Radu Coravu 2002 - 2004.