Results 1 to 4 of 4
  1. #1
    Jorik is offline Member
    Join Date
    Oct 2010
    Posts
    5
    Rep Power
    0

    Default To download file, using java.nio

    Good evening, programmers. I need help.
    I want to download a file, using java.nio. The content of the file doesn't matter.
    E.g. I have the url="http://www.google.com". The result of the downloading will be a HTML file.
    Another case: I have the url="http://citylan.dl.sourceforge.net/project/pidgin/Pidgin/2.7.4/pidgin-2.7.4.exe". The result of the downloading will be an exe-file.
    Please, help me. How can I do it with java.nio?
    I mean ONLY how to download files,using java.nio, but not check the content of files and then rename them

  2. #2
    FON
    FON is offline Senior Member
    Join Date
    Dec 2009
    Location
    Belgrade, Serbia
    Posts
    364
    Rep Power
    5

    Default

    If you insist on nio maybe you can find help here:

    http://book.javanb.com/sillsoft-Pres...o/LiB0016.html
    Last edited by FON; 10-25-2010 at 11:17 AM. Reason: bad link

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    Jorik is offline Member
    Join Date
    Oct 2010
    Posts
    5
    Rep Power
    0

    Default

    No, it isn't a FTP client. I just want to download any information from the site.

    FON, I am very much obliged to you but I can't find the packet where interface FileInfo is situated. I need in standard facilities of java.nio

Similar Threads

  1. Download a file by Bluetooth in Java SE
    By danielpereira in forum New To Java
    Replies: 0
    Last Post: 10-06-2010, 08:56 PM
  2. Replies: 0
    Last Post: 03-05-2010, 04:21 AM
  3. Download file from URL?
    By makpandian in forum Networking
    Replies: 0
    Last Post: 03-10-2009, 12:31 PM
  4. File Download
    By AnGuRuSO in forum New To Java
    Replies: 9
    Last Post: 10-29-2008, 11:00 AM
  5. file download
    By abhiN in forum New To Java
    Replies: 0
    Last Post: 02-08-2008, 09:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •