org.elite.jdcbot.framework
Class UploadManager

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

public class UploadManager
extends DCIO

Created on 26-May-08

Since:
0.7
Version:
0.1
Author:
AppleGrew

Field Summary
private  java.util.Map<java.lang.String,UploadHandler> allUH
           
private  jDCBot jdcbot
           
 
Constructor Summary
UploadManager(jDCBot bot)
           
 
Method Summary
protected  void close()
           
protected  int getAllUHCount()
           
protected  void tasksComplete(UploadHandler uh)
           
protected  void upload(java.lang.String user, java.net.Socket socket, int N, java.lang.String key)
          Uploads to active user user.
protected  void uploadPassive(java.lang.String user)
          Uploads to passive user user.
 
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

allUH

private java.util.Map<java.lang.String,UploadHandler> allUH

jdcbot

private jDCBot jdcbot
Constructor Detail

UploadManager

public UploadManager(jDCBot bot)
Method Detail

close

protected void close()

tasksComplete

protected void tasksComplete(UploadHandler uh)

getAllUHCount

protected int getAllUHCount()

uploadPassive

protected void uploadPassive(java.lang.String user)
                      throws BotException
Uploads to passive user user.

Parameters:
user -
Throws:
BotException

upload

protected void upload(java.lang.String user,
                      java.net.Socket socket,
                      int N,
                      java.lang.String key)
               throws BotException
Uploads to active user user.

Parameters:
user -
socket -
N -
key -
Throws:
BotException