|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--irc.IRCObject | +--irc.Source | +--irc.dcc.DCCFile
The DCCFile, used for file transferts.
Field Summary |
Fields inherited from class irc.Source |
_in, _server |
Fields inherited from class irc.IRCObject |
_ircConfiguration |
Constructor Summary | |
DCCFile(IRCConfiguration config,
java.io.File f,
DCCFileHandler handler)
Create a new DCCFile. |
Method Summary | |
void |
addDCCFileListener(DCCFileListener lis)
Add a listener. |
void |
byteReceived(byte b)
Write a new byte in the destination file. |
void |
fileReceived()
Notify this dcc file the file reception is terminated. |
void |
fileReceiveFailed()
Notify this dcc file the file reception has failed. |
void |
fileSent()
Notify this file the sending is terminated. |
void |
fileSentFailed()
Notify this file the sending has failed. |
java.lang.String |
getName()
Get this source name. |
int |
getSize()
Get the file size. |
java.lang.String |
getType()
Get this source type. |
boolean |
isDownloading()
Return true if the transfert is a download transfert. |
boolean |
isUploading()
Return true if the transfert is an upload transfert. |
void |
leave()
Request to leave (close) this source. |
void |
prepareReceive(int size)
Prepare to receive file. |
void |
prepareSend()
Prepare to send the file. |
byte |
readByte()
Read the next byte while sending. |
void |
removeDCCFileListener(DCCFileListener lis)
Remove a listener. |
boolean |
talkable()
Test wether this source can accept messages from user. |
Methods inherited from class irc.Source |
action, activate, addSourceListener, clear, getInterpretor, getServer, isActive, mayDefault, messageReceived, noticeReceived, release, removeSourceListener, report, sendString, setCTCPFilter, setInterpretor |
Methods inherited from class irc.IRCObject |
getColor, getIRCConfiguration, getText, getText, getText, getText, getTimeStamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DCCFile(IRCConfiguration config, java.io.File f, DCCFileHandler handler)
f
- the file to transfert.handler
- the file handler.Method Detail |
public void addDCCFileListener(DCCFileListener lis)
lis
- listener to add.public void removeDCCFileListener(DCCFileListener lis)
lis
- listener to remove.public void prepareSend()
public byte readByte()
public int getSize()
public boolean isUploading()
public boolean isDownloading()
public void fileSent()
public void fileSentFailed()
public void prepareReceive(int size)
size
- the file size.public void byteReceived(byte b)
b
- the new received byte.public void fileReceived()
public void fileReceiveFailed()
public java.lang.String getName()
Source
getName
in class Source
public void leave()
Source
leave
in class Source
public boolean talkable()
Source
talkable
in class Source
public java.lang.String getType()
Source
getType
in class Source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |