|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
echopoint.tucana.event.DownloadEvent
public abstract class DownloadEvent
A base download event class used to indicate a file/content download process.
| Field Summary | |
|---|---|
protected long |
contentLength
The total size in bytes of the content that is being downloaded. |
protected String |
contentType
The mime type of the content that is being downloaded. |
protected String |
fileName
The file name (if any) of the content being downloaded. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
DownloadEvent(DownloadCommand source,
String fileName,
long contentLength,
String contentType)
Constructs a new download event with the specified content attributes. |
|
| Method Summary | |
|---|---|
long |
getContentLength()
Accessor for property 'contentLength'. |
String |
getContentType()
Accessor for property 'contentType'. |
String |
getFileName()
Accessor for property 'fileName'. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String fileName
protected final long contentLength
protected final String contentType
| Constructor Detail |
|---|
public DownloadEvent(DownloadCommand source,
String fileName,
long contentLength,
String contentType)
throws IllegalArgumentException
source - The object on which the Event initially occurred.fileName - The name of the file that is being downnloaded.contentLength - The size in bytes of the content.contentType - The mime type of the content.
IllegalArgumentException - if source is null.| Method Detail |
|---|
public String getFileName()
public long getContentLength()
public String getContentType()
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||