Android
javax.crypto
public class

javax.crypto.CipherOutputStream

java.lang.Object
java.io.OutputStream Closeable Flushable
java.io.FilterOutputStream
javax.crypto.CipherOutputStream

Summary

Fields inherited from class java.io.FilterOutputStream

Public Constructors

            CipherOutputStream(OutputStream os, Cipher c)

Protected Constructors

            CipherOutputStream(OutputStream os)

Public Methods

          void  close()
Close this FilterOutputStream.
          void  flush()
Flush this FilterOutputStream to ensure all pending data is sent out to the target OutputStream.
          void  write(byte[] b)
Writes the entire contents of the byte array buffer to this FilterOutputStream.
          void  write(int b)
Writes the specified byte oneByte to this FilterOutputStream.
          void  write(byte[] b, int off, int len)
Writes count bytes from the byte array buffer starting at offset to this FilterOutputStream.
Methods inherited from class java.io.FilterOutputStream
Methods inherited from class java.io.OutputStream
Methods inherited from class java.lang.Object
Methods inherited from interface java.io.Closeable
Methods inherited from interface java.io.Flushable

Details

Public Constructors

public CipherOutputStream(OutputStream os, Cipher c)

Protected Constructors

protected CipherOutputStream(OutputStream os)

Public Methods

public void close()

Close this FilterOutputStream. This implementation closes the target stream.

Throws

IOException

public void flush()

Flush this FilterOutputStream to ensure all pending data is sent out to the target OutputStream. This implementation flushes the target OutputStream.

Throws

IOException

public void write(byte[] b)

Writes the entire contents of the byte array buffer to this FilterOutputStream. This implementation writes the buffer to the target stream.

Parameters

b the buffer to be written

Throws

IOException

public void write(int b)

Writes the specified byte oneByte to this FilterOutputStream. Only the low order byte of oneByte is written. This implementation writes the byte to the target OutputStream.

Parameters

b the byte to be written

Throws

IOException

public void write(byte[] b, int off, int len)

Writes count bytes from the byte array buffer starting at offset to this FilterOutputStream. This implementation writes the buffer to the target OutputStream.

Parameters

b the buffer to be written
off offset in buffer to get bytes
len number of bytes in buffer to write

Throws

IOException
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56