j_waste.network
Class FileTransfer

java.lang.Object
  extended byjava.lang.Thread
      extended byj_waste.network.FileTransfer
All Implemented Interfaces:
java.util.EventListener, PacketEventListener, java.lang.Runnable

public class FileTransfer
extends java.lang.Thread
implements PacketEventListener


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileTransfer(FileRequestPacket frp, Connection connection)
          Constructs a new FileTransfer object from a FileDatabase and an incoming FileRequestPacket.
 
Method Summary
 void packetReceived(PacketEvent e)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTransfer

public FileTransfer(FileRequestPacket frp,
                    Connection connection)
Constructs a new FileTransfer object from a FileDatabase and an incoming FileRequestPacket.

Parameters:
frp - The incoming FileRequestPacket that initiated
connection - The Connection to send outgoing packets on.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

packetReceived

public void packetReceived(PacketEvent e)
Specified by:
packetReceived in interface PacketEventListener