rero.dcc
public class Receive extends ProtocolDCC
Field Summary | |
---|---|
protected File | dumpTo |
protected FileOutputStream | fileStream |
protected long | finalSize |
protected static int | PACKET_SIZE |
protected long | receivedSize |
protected long | startSize |
Constructor Summary | |
---|---|
Receive(String _nickname, File _dumpTo, long _finalSize)
Create a ready to rock and roll receive socket. |
Method Summary | |
---|---|
void | fireError(String description) |
void | fireEvent(String event, String description) |
long | getBytesReceived() return the number of bytes that have been received thus far |
long | getExpectedSize() return the expected size of the file we are receiving |
File | getFile() return the object pointing to the File we are downloading |
long | getStartOffset() return the number of bytes that we started out with (0 normally, however in the case of a resume this number could be
anything from 0 up to nearly the size of the file |
long | getTimeRemaining() return the estimated time remaning in seconds |
int | getTransferRate() return the number of bytes transferred per second |
int | getTypeOfDCC() |
void | pleaseResume() |
void | run() |
void | setFile(File f) |