|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.ssh.transport.MessageStream
com.jscape.inet.ssh.transport.MessageWriter
public final class MessageWriter
The SSH message out.
| Constructor Summary | |
|---|---|
MessageWriter(java.io.OutputStream out,
Compression compressor,
javax.crypto.Cipher encipher,
javax.crypto.Mac mac)
Creates a new SSH message out instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the writer. |
void |
writeLine(java.lang.String line)
Writes the specified line. |
void |
writeMessage(Message msg)
Writes the specified message to the underlayed output stream. |
| Methods inherited from class com.jscape.inet.ssh.transport.MessageStream |
|---|
getBytesCount, setCipher, setCompression, setMac |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageWriter(java.io.OutputStream out,
Compression compressor,
javax.crypto.Cipher encipher,
javax.crypto.Mac mac)
out - the target output streamcompressor - the message compressorencipher - the message enciphermac - the message mac algorithm| Method Detail |
|---|
public void close()
public void writeLine(java.lang.String line)
throws java.io.IOException
line - the line to write.
java.io.IOException - if an I/O error occurs
public void writeMessage(Message msg)
throws java.io.IOException
msg - the message to write
java.io.IOException - if an I/O error occurs
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||