|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jml.impl.AbstractFileTransfer
public abstract class AbstractFileTransfer
Implement MsnFileTransfer basic method.
Constructor Summary | |
---|---|
AbstractFileTransfer(MsnSwitchboard switchboard,
MsnContact contact)
|
Method Summary | |
---|---|
MsnContact |
getContact()
Get the contact who sent the file or received the file. |
File |
getFile()
Get the transfer file. |
long |
getFileTotalSize()
Get the total size of the file. |
MsnMessenger |
getMessenger()
Get the MsnMessenger the controller belongs to. |
MsnFileTransferState |
getState()
Get file transfer state. |
MsnSwitchboard |
getSwitchboard()
Get the MsnSwitchboard the controller belongs to. |
long |
getTransferredSize()
Get transferred size. |
boolean |
isReceiver()
Is the MsnOwner receive file from others. |
void |
setFile(File file)
Set the transfer file only if the transfer controller not started. |
void |
setFileTotalSize(long fileTotalSize)
|
protected void |
setState(MsnFileTransferState state)
|
protected void |
setTransferredSize(long transferredSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jml.MsnFileTransfer |
---|
cancel, isSender, isStarted, start |
Constructor Detail |
---|
public AbstractFileTransfer(MsnSwitchboard switchboard, MsnContact contact)
Method Detail |
---|
public MsnSwitchboard getSwitchboard()
MsnFileTransfer
getSwitchboard
in interface MsnFileTransfer
public MsnMessenger getMessenger()
MsnFileTransfer
getMessenger
in interface MsnFileTransfer
public MsnContact getContact()
MsnFileTransfer
getContact
in interface MsnFileTransfer
public MsnFileTransferState getState()
MsnFileTransfer
getState
in interface MsnFileTransfer
public boolean isReceiver()
MsnFileTransfer
isReceiver
in interface MsnFileTransfer
public long getFileTotalSize()
MsnFileTransfer
getFileTotalSize
in interface MsnFileTransfer
public long getTransferredSize()
MsnFileTransfer
getTransferredSize
in interface MsnFileTransfer
public File getFile()
MsnFileTransfer
getFile
in interface MsnFileTransfer
public void setFile(File file) throws IllegalStateException
MsnFileTransfer
setFile
in interface MsnFileTransfer
file
- transfer file
IllegalStateException
- if the transfer startedpublic void setFileTotalSize(long fileTotalSize)
protected void setTransferredSize(long transferredSize)
protected void setState(MsnFileTransferState state)
|
JML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |