org.erowid.sperowider
Class Downloader
java.lang.Object
org.erowid.sperowider.ASpiderBase
org.erowid.sperowider.Downloader
- public class Downloader
- extends ASpiderBase
Downloads files to the local drive.
- Version:
- $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/Downloader.java,v 1.28 2005/03/12 21:07:17 gurustu Exp $
- Author:
- Stu Statman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Downloader
public Downloader(SperowiderContext context)
- Instantiates a downloader, with a given download model. The download root
is where it should download to.
handleConnection
public int handleConnection(String sourceUrl,
HttpURLConnection bConnection)
- Delegates to the appropriate
AHandler
.
- Specified by:
handleConnection
in class ASpiderBase
handleConnectionException
public void handleConnectionException(String sourceUrl,
Throwable e)
- IO exceptions get marked as invalid URLs. Other exceptions just get logged.
- Specified by:
handleConnectionException
in class ASpiderBase