File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes getReplyString() equivalent method for j2ssh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "getReplyString() equivalent method for j2ssh " Watch "getReplyString() equivalent method for j2ssh " New topic
Author

getReplyString() equivalent method for j2ssh

sorabh jaiswal
Greenhorn

Joined: May 11, 2007
Posts: 10
Hi All,

I am looking of a method equivalent of below code in j2ssh. I am using com.sshtools.j2ssh.*

===========================================================================
In Apache you have this
import org.apache.commons.net.ftp.*;

FTPClient ftp = new FTPClient();
System.out.println ( "Server Response " + ftp.getReplyString()); // I need this method getReplyString() in j2ssh but I cannot find it. Is there any other way to get server response in j2ssh
=========================================================================

I need this method equivalent in j2ssh to get the response from server whenever I am making a connection or there is an error fired. Also is there any way in which I can get the list of IOException thrown in j2ssh so I can form user readable error.

Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

Moving to Other Open Source Projects.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getReplyString() equivalent method for j2ssh
 
Similar Threads
FTP connection to a Proxy
How to Check whether the file in the Ftpserver is a directory or not?
Issue with FTP upload using org.apache.commons.net.ftp
How to Check whether the file in the Ftpserver is a directory or not?
FTP problem with commons.net.ftp.FTPClient