Secure iNet Factory

com.jscape.inet.sftp.v3.packets
Class SshFxpStatus2

java.lang.Object
  extended by com.jscape.inet.sftp.SftpPacket
      extended by com.jscape.inet.sftp.packets.SshFxpStatus
          extended by com.jscape.inet.sftp.v3.packets.SshFxpStatus2

public class SshFxpStatus2
extends SshFxpStatus

The SSH_FXP_STATUS packet version 2.

Version:
1.0
Author:
Alex Usun

Field Summary
 
Fields inherited from class com.jscape.inet.sftp.packets.SshFxpStatus
TYPE
 
Constructor Summary
SshFxpStatus2(int code, java.lang.String message, java.lang.String languageTag)
          Creates a new packet instance.
 
Method Summary
 java.lang.String getLanguageTag()
          Obtains the message language tag.
 java.lang.String getMessage()
          Obtains the status message.
static SftpPacket readFrom(java.io.InputStream in, java.lang.String charset)
          Reads the packet from the stream.
 java.lang.String toString()
          Provides the human-readable packet representation.
 void writeTo(java.io.OutputStream out, java.lang.String charset)
          Writes the current packet to the specified stream.
 
Methods inherited from class com.jscape.inet.sftp.packets.SshFxpStatus
getCode
 
Methods inherited from class com.jscape.inet.sftp.SftpPacket
getId, getType, readFrom, readFrom, setId, writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SshFxpStatus2

public SshFxpStatus2(int code,
                     java.lang.String message,
                     java.lang.String languageTag)
Creates a new packet instance.

Parameters:
code - the status code
message - the status message
languageTag - the message language tag
Method Detail

readFrom

public static SftpPacket readFrom(java.io.InputStream in,
                                  java.lang.String charset)
                           throws java.io.IOException
Reads the packet from the stream.

Parameters:
in - the source input stream
Returns:
the readed packet
Throws:
java.io.IOException - if an I/O error occurs

getMessage

public java.lang.String getMessage()
Obtains the status message.

Returns:
the status message

getLanguageTag

public java.lang.String getLanguageTag()
Obtains the message language tag.

Returns:
the message language tag

writeTo

public void writeTo(java.io.OutputStream out,
                    java.lang.String charset)
             throws java.io.IOException
Writes the current packet to the specified stream.

Overrides:
writeTo in class SshFxpStatus
Parameters:
out - the output stream
Throws:
java.io.IOException - if I/O error occured

toString

public java.lang.String toString()
Provides the human-readable packet representation.

Overrides:
toString in class SshFxpStatus
Returns:
the human-readable packet representation.

Secure iNet Factory

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