|
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.Message
public abstract class Message
The SSH message.
Method Summary | |
---|---|
long |
getId()
Returns the message id. |
int |
getType()
Returns the message type code. |
static Message |
readFrom(java.io.InputStream in,
java.lang.Class messageClass)
|
static Message |
readFrom(SshReader reader,
java.lang.Class messageClass)
Reads the message from the reader. |
void |
setId(long id)
Setups the message id. |
void |
writeTo(java.io.OutputStream out)
|
void |
writeTo(SshWriter writer)
Writes the message to the specified writer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Message readFrom(java.io.InputStream in, java.lang.Class messageClass) throws TransportException
in
- messageClass
-
TransportException
public static Message readFrom(SshReader reader, java.lang.Class messageClass) throws TransportException
reader
- the SSH types readermessageClass
- the target message class
TransportException
- if an I/O error occurspublic int getType()
public long getId()
public void setId(long id)
id
- the message idpublic void writeTo(java.io.OutputStream out) throws java.io.IOException
out
-
java.io.IOException
public void writeTo(SshWriter writer) throws java.io.IOException
writer
- the SSH types writer
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 |