com.github.axet.wget
Class Direct

java.lang.Object
  extended by com.github.axet.wget.Direct
Direct Known Subclasses:
DirectMultipart, DirectRange, DirectSingle

public abstract class Direct
extends Object


Field Summary
static int BUF_SIZE
          size of read buffer
static int CONNECT_TIMEOUT
          connect socket timeout
static int READ_TIMEOUT
          read socket timeout
static String USER_AGENT
          fake user agent for Vimeo.
 
Constructor Summary
Direct(DownloadInfo info, File target)
           
 
Method Summary
abstract  void download(AtomicBoolean stop, Runnable notify)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECT_TIMEOUT

public static final int CONNECT_TIMEOUT
connect socket timeout

See Also:
Constant Field Values

READ_TIMEOUT

public static final int READ_TIMEOUT
read socket timeout

See Also:
Constant Field Values

BUF_SIZE

public static final int BUF_SIZE
size of read buffer

See Also:
Constant Field Values

USER_AGENT

public static final String USER_AGENT
fake user agent for Vimeo.

See Also:
Constant Field Values
Constructor Detail

Direct

public Direct(DownloadInfo info,
              File target)
Parameters:
info - download file information
target - target file
stop - multithread stop command
notify - progress notify call
Method Detail

download

public abstract void download(AtomicBoolean stop,
                              Runnable notify)


Copyright © 2012. All Rights Reserved.