|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.core.network.FileTransfer
public abstract class FileTransfer
A file transfer describes a transfer of a file through a network connection.
Clients should implement Download
or a subclass of Download
.
Constructor Summary | |
---|---|
FileTransfer(MediaInfo media)
Create a new file transfer transferring the given media |
Method Summary | |
---|---|
abstract int |
getLength()
The length of the file to transfer in bytes. |
MediaInfo |
getMediaInfo()
The transfered media. |
abstract int |
getPercentage()
The percentage transfered so far. |
abstract double |
getSpeed()
The current speed of the download in KB per second if know. |
abstract int |
getTransfered()
The amount of bytes transfered so far. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTransfer(MediaInfo media)
media
- the media to transferMethod Detail |
---|
public MediaInfo getMediaInfo()
public abstract int getLength()
public abstract int getTransfered()
public abstract int getPercentage()
public abstract double getSpeed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |