0

Can I use standard Java Classes for FTP operations (upload, download, delete, list...) ? Because, I found a good FTP client librabry Apache Commons Net, but my manager wants to write her own based off the standard classes.

How can I get my manager to allow us to use the package above, and if she does not buy into the use of this library, what pitfalls will we likely encounter?

Scott
  • 9,458
  • 7
  • 54
  • 81
YoungMaster
  • 395
  • 3
  • 17

3 Answers3

7

Why would your manager not want to use a proven piece of software and replace it with something that you'd have to write, test, and maintain? Your boss is an idiot - use the Apache FTP client and move on. You have more interesting business problems to solve.

duffymo
  • 305,152
  • 44
  • 369
  • 561
2

There are FTP classes in the JDK, see sun.net.FtpClient.

Rens Verhage
  • 5,688
  • 4
  • 33
  • 51
  • 4
    Be careful using the sun classes; just because they are in the JDK does not mean that they are "standard Java classes." These classes are specific to the Sun/Oracle JRE and may not be available everywhere your application is deployed. It's a great suggestion and I'm sure the classes work great, just know that you are still working with non-standard code here. – Sean Mickey Apr 26 '12 at 12:44
-1

The Apache Commons classes are standard classes. They are widely spread and come with thorough testing and documentation. They do offer a much better handling with ftp-handled file transfer than the JDK classes.

İsmet Alkan
  • 5,361
  • 3
  • 41
  • 64