• Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP client in java  RSS feed

 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to experiment with FTP protocol using java. How can I make an FTP client using java?
Do I need to use URL and URLConnection class or do I have to write it using raw sockets? The URL class has constructors requiring file name. To start with, I would like my client to list all the files from the remote directory. How can I do this?
I have already searched the net with google, it has few full featured apps using java, as for me I would like to know few steps that I need to follow to make a simple client.
TIA,
- Manish
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a java ftp client published under GNU license. You can get it at http://www.enterprisedt.com/downloads/ftp.html
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff Holmes contributed a Socket based FTPClient. It's not fully complete but, should have enough for your task http://www.javaranch.com/ubb/Forum38/HTML/000066.html
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!