|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.filetransfer.Download
public final class Download
command line automated download a file from the Internet.
use: java com.mindprod.filetransfer.Download http://x.com/y.html C:\y.txt
Method Summary | |
---|---|
static boolean |
downloadOneFile(java.lang.String urlString,
java.lang.String filename)
Download one file |
static void |
main(java.lang.String[] args)
Command line Download |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean downloadOneFile(java.lang.String urlString, java.lang.String filename)
urlString
- source URL of file to download
e.g."http://www.billabong.com:80/songs/lyrics.txt"
works with http:, https:, file: and possibly others.filename
- target name of file to save on hard disk.
public static void main(java.lang.String[] args)
args
- source url, target file
source URL of file to download
e.g."http://www.billabong.com:80/songs/lyrics.txt"
works with http:, https:, file: and possibly others.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |