|
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 MsnFileTransferpublic MsnMessenger getMessenger()
MsnFileTransfer
getMessenger in interface MsnFileTransferpublic MsnContact getContact()
MsnFileTransfer
getContact in interface MsnFileTransferpublic MsnFileTransferState getState()
MsnFileTransfer
getState in interface MsnFileTransferpublic boolean isReceiver()
MsnFileTransfer
isReceiver in interface MsnFileTransferpublic long getFileTotalSize()
MsnFileTransfer
getFileTotalSize in interface MsnFileTransferpublic long getTransferredSize()
MsnFileTransfer
getTransferredSize in interface MsnFileTransferpublic File getFile()
MsnFileTransfer
getFile in interface MsnFileTransfer
public void setFile(File file)
throws IllegalStateException
MsnFileTransfer
setFile in interface MsnFileTransferfile - 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 | ||||||||