Secure iNet Factory

com.jscape.inet.ssh.transport.messages
Class SshMsgUnknown

java.lang.Object
  extended by com.jscape.inet.ssh.transport.Message
      extended by com.jscape.inet.ssh.transport.messages.SshMsgUnknown
All Implemented Interfaces:
TransportDispatchable

public class SshMsgUnknown
extends Message
implements TransportDispatchable

Version:
1.0
Author:
Alex Usun

Constructor Summary
SshMsgUnknown(int type, byte[] data)
          Creates a new message instance.
 
Method Summary
 boolean accept(TransportMessageDispatcher dispatcher)
          Calls an appropriate dispatcher method.
 byte[] getData()
          Returns the message data.
 java.lang.String toString()
          Returns the string representation of this message.
 void writeTo(java.io.OutputStream out)
          Method writeTo
 void writeTo(SshWriter writer)
          Writes the message to the specified writer.
 
Methods inherited from class com.jscape.inet.ssh.transport.Message
getId, getType, readFrom, readFrom, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SshMsgUnknown

public SshMsgUnknown(int type,
                     byte[] data)
Creates a new message instance.

Parameters:
data - the message data
Method Detail

getData

public byte[] getData()
Returns the message data.

Returns:
the message data

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Method writeTo

Overrides:
writeTo in class Message
Throws:
java.io.IOException
See Also:
Message.writeTo(OutputStream)

writeTo

public void writeTo(SshWriter writer)
             throws java.io.IOException
Writes the message to the specified writer.

Overrides:
writeTo in class Message
Parameters:
writer - the SSH types writer
Throws:
java.io.IOException - if an I/O error occurs

accept

public boolean accept(TransportMessageDispatcher dispatcher)
Calls an appropriate dispatcher method.

Specified by:
accept in interface TransportDispatchable
Parameters:
dispatcher - the message dispatcher
Returns:
true if dispatcher can dispatch this message; false otherwise

toString

public java.lang.String toString()
Returns the string representation of this message.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this message

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved