com.github.axet.wget
Class WGet

java.lang.Object
  extended by com.github.axet.wget.WGet

public class WGet
extends Object


Nested Class Summary
static interface WGet.HtmlLoader
           
 
Constructor Summary
WGet(DownloadInfo info, File targetFile)
          application controlled download / resume.
WGet(URL source, File target)
          download with events control.
 
Method Summary
static File calcName(DownloadInfo info, File target)
           
static File calcName(URL source, File target)
           
 void download()
           
 void download(AtomicBoolean stop, Runnable notify)
           
static String getHtml(URL source)
           
static String getHtml(URL source, WGet.HtmlLoader load, AtomicBoolean stop)
           
 DownloadInfo getInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WGet

public WGet(URL source,
            File target)
download with events control.

Parameters:
source -
target -

WGet

public WGet(DownloadInfo info,
            File targetFile)
application controlled download / resume. you should specify targetfile name exactly. since you are choise resume / multipart download. application unable to control file name choise / creation.

Parameters:
info -
targetFile -
stop -
notify -
Method Detail

calcName

public static File calcName(URL source,
                            File target)

calcName

public static File calcName(DownloadInfo info,
                            File target)

download

public void download()

download

public void download(AtomicBoolean stop,
                     Runnable notify)

getInfo

public DownloadInfo getInfo()

getHtml

public static String getHtml(URL source)

getHtml

public static String getHtml(URL source,
                             WGet.HtmlLoader load,
                             AtomicBoolean stop)


Copyright © 2012. All Rights Reserved.