org.elite.jdcbot.framework
Class DownloadManager

java.lang.Object
  extended by org.elite.jdcbot.framework.DCIO
      extended by org.elite.jdcbot.framework.DownloadManager

public class DownloadManager
extends DCIO

Created on 26-May-08
This is used internall by the framework to schedule the downloads.

Since:
0.7
Version:
0.1
Author:
AppleGrew

Field Summary
private  java.util.Map<java.lang.String,DownloadHandler> allDH
           
private  jDCBot jdcbot
           
 
Constructor Summary
DownloadManager(jDCBot bot)
           
 
Method Summary
protected  void close()
           
protected  void download(DUEntity de, User u)
           
protected  void download(java.lang.String user, java.net.Socket socket, int N, java.lang.String key)
           
protected  void tasksComplete(DownloadHandler dh)
           
 
Methods inherited from class org.elite.jdcbot.framework.DCIO
parseCmdArgs, parseCmdName, parseRawCmd, ReadCommand, ReadCommand, SendCommand, SendCommand, set_IOExceptionMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allDH

private java.util.Map<java.lang.String,DownloadHandler> allDH

jdcbot

private jDCBot jdcbot
Constructor Detail

DownloadManager

public DownloadManager(jDCBot bot)
Method Detail

close

protected void close()

tasksComplete

protected void tasksComplete(DownloadHandler dh)

download

protected void download(DUEntity de,
                        User u)
                 throws BotException
Throws:
BotException

download

protected void download(java.lang.String user,
                        java.net.Socket socket,
                        int N,
                        java.lang.String key)
                 throws BotException
Throws:
BotException