|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream ccs.crypt.CipherOutputStream
public abstract class CipherOutputStream
Field Summary | |
---|---|
protected long |
plainlen
The plaintext length for this stream. |
protected byte[] |
temp8
An 8-byte scratch space. |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
CipherOutputStream(java.io.OutputStream os,
long plainlen)
Construct a CipherOutputStream. |
Method Summary | |
---|---|
void |
close()
|
abstract void |
finish()
Completes the encryption but does not close the underlying stream. |
void |
flush()
Flushes at least the underlying stream. |
abstract void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
writes a single byte. |
Methods inherited from class java.io.FilterOutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte[] temp8
Unsigned.writePacked(java.io.OutputStream, long, byte[])
protected long plainlen
Constructor Detail |
---|
public CipherOutputStream(java.io.OutputStream os, long plainlen)
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.FilterOutputStream
b
- The value (in the range 0-255) to be written
java.io.IOException
- if an error occurs.public void flush() throws java.io.IOException
finish()
to ensure that all plaintext has been encrypted and
written.
flush
in interface java.io.Flushable
flush
in class java.io.FilterOutputStream
java.io.IOException
- If thrown by the underlying stream.public abstract void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
public abstract void finish() throws java.io.IOException
java.io.IOException
- if the finish failed for some reason.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.FilterOutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |