|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
javax.crypto.CipherOutputStream
public class CipherOutputStream
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
protected |
CipherOutputStream(OutputStream os)
|
|
CipherOutputStream(OutputStream os,
Cipher c)
|
| Method Summary | |
|---|---|
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(byte[] b,
int off,
int len)
Writes count bytes from the byte array
buffer starting at offset to this
FilterOutputStream. |
void |
write(int b)
Writes the specified byte oneByte to this
FilterOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CipherOutputStream(OutputStream os,
Cipher c)
protected CipherOutputStream(OutputStream os)
| Method Detail |
|---|
public void write(int b)
throws IOException
FilterOutputStreamoneByte to this
FilterOutputStream. Only the low order byte of oneByte is
written. This implementation writes the byte to the target OutputStream.
write in class FilterOutputStreamb - the byte to be written
IOException - If an error occurs attempting to write to this
FilterOutputStream.
public void write(byte[] b)
throws IOException
FilterOutputStreambuffer to
this FilterOutputStream. This implementation writes the
buffer to the target stream.
write in class FilterOutputStreamb - the buffer to be written
IOException - If an error occurs attempting to write to this
FilterOutputStream.
public void write(byte[] b,
int off,
int len)
throws IOException
FilterOutputStreamcount bytes from the byte array
buffer starting at offset to this
FilterOutputStream. This implementation writes the buffer
to the target OutputStream.
write in class FilterOutputStreamb - the buffer to be writtenoff - offset in buffer to get byteslen - number of bytes in buffer to write
IOException - If an error occurs attempting to write to this
FilterOutputStream.
public void flush()
throws IOException
FilterOutputStream
flush in interface Flushableflush in class FilterOutputStreamIOException - If an error occurs attempting to flush this
FilterOutputStream.
public void close()
throws IOException
FilterOutputStream
close in interface Closeableclose in class FilterOutputStreamIOException - If an error occurs attempting to close this stream.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||