|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.util.DownloadEvent
Event object for a download event
Field Summary | |
static int |
END
Event types |
static int |
RUNNING
Event types |
static int |
START
Event types |
Constructor Summary | |
DownloadEvent(int aType,
int aTotalSize,
int aAlreadyDownloaded,
java.lang.String aFileName,
java.net.URL aSource)
Main constructor |
Method Summary | |
int |
getAlreadyDownloaded()
Returns the alreadyDownloaded bytes |
java.lang.String |
getFileName()
Returns the fileName. |
java.net.URL |
getSource()
Returns the URL of the source. |
int |
getTotalSize()
Returns the totalSize in bytes |
int |
getType()
Returns the type of event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int END
public static final int RUNNING
public static final int START
Constructor Detail |
public DownloadEvent(int aType, int aTotalSize, int aAlreadyDownloaded, java.lang.String aFileName, java.net.URL aSource)
aType
- Type of the Event, eigher DownloadEvent.START, DownloadEvent.RUNNING
or DownloadEvent.ENDaTotalSize
- size of the file in bytesaAlreadyDownloaded
- already downloaded bytesaFileName
- name of the fileaSource
- URL of the sourceMethod Detail |
public int getAlreadyDownloaded()
public java.lang.String getFileName()
public java.net.URL getSource()
public int getTotalSize()
public int getType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |