public class InstallerFileEvent extends InstallerEvent
InstallerContext
.
This event object contains additional information about the installed file.
The event types EventType.BEFORE_INSTALL_FILE
and EventType.AFTER_INSTALL_FILE
produce this event object when fired.
Constructor and Description |
---|
InstallerFileEvent(java.lang.Object source,
Context context,
EventType type,
boolean success,
java.io.File destinationFile,
long fileSize)
The constructor is called by the framework.
|
InstallerFileEvent(java.lang.Object source,
Context context,
EventType type,
java.io.File destinationFile,
long fileSize)
The constructor is called by the framework.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDestinationFile()
Get the installed file location that is associated with this event.
|
long |
getFileSize()
Get the size of the installed file in bytes.
|
java.lang.String |
getVerbose()
Return a verbose description of this event.
|
java.lang.String |
toString() |
getContext, getType, setContext, wasSuccessful
public InstallerFileEvent(java.lang.Object source, Context context, EventType type, boolean success, java.io.File destinationFile, long fileSize)
source
- the event sourcecontext
- the contexttype
- the event type.success
- whether the operation associated with the event was successfuldestinationFile
- the installed filefileSize
- the size of the installed filepublic InstallerFileEvent(java.lang.Object source, Context context, EventType type, java.io.File destinationFile, long fileSize)
source
- the event sourcecontext
- the contexttype
- the event type.destinationFile
- the installed filefileSize
- the size of the installed filepublic java.io.File getDestinationFile()
public long getFileSize()
public java.lang.String toString()
toString
in class InstallerEvent
public java.lang.String getVerbose()
InstallerEvent
getVerbose
in class InstallerEvent