Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getReplyString() equivalent method for j2ssh

 
sorabh jaiswal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20526
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Other Open Source Projects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic