it.sauronsoftware.ftp4j
Class FTPReply

java.lang.Object
  extended by it.sauronsoftware.ftp4j.FTPReply

public class FTPReply
extends java.lang.Object

This class represents FTP server replies in a manageable object oriented way.

Author:
Carlo Pelliccia

Method Summary
 int getCode()
          Returns the code of the reply.
 java.lang.String[] getMessages()
          Returns the textual message(s) of the reply.
 boolean isSuccessCode()
          Returns true if the code of the reply is in the range of success codes (2**).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCode

public int getCode()
Returns the code of the reply.

Returns:
The code of the reply.

isSuccessCode

public boolean isSuccessCode()
Returns true if the code of the reply is in the range of success codes (2**).

Returns:
true if the code of the reply is in the range of success codes (2**).

getMessages

public java.lang.String[] getMessages()
Returns the textual message(s) of the reply.

Returns:
The textual message(s) of the reply.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object