Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in Java FTP by (180 points)
How can the sendCommand method of FTPControlSocket be accessed. According to the documentation, one only need a FTPClient object to get access to the other classes. But, I cannot find the sendCommand available anywhere other than the FTPControlSocket class - but that of course cannot be instantiated on its own (protected).

Any input is appreciated! Thanks.

2 Answers

0 votes
by (162k points)
You can't access sendCommand as it is protected (by design). However you can use the quote() method of FTPClient to send a literal string to the FTP server, which is a better way to do it.
0 votes
by (180 points)
Excellent! That works fine!

Thanks for the reply!

Best regards,
Java_Bear :D

Categories

...