Package com.install4j.api.events
Class InstallerFileInstallationEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.install4j.api.events.InstallerEvent
-
- com.install4j.api.events.InstallerFileInstallationEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class InstallerFileInstallationEvent extends InstallerEvent
The event object that is passed to installer event listeners when the file installation is started. Event listeners are registered in theInstallerContext
.This event object contains additional information about the installed files. The event type
EventType.FILE_INSTALLATION_STARTED
produces this event object when fired.
-
-
Constructor Summary
Constructors Constructor Description InstallerFileInstallationEvent(java.lang.Object source, Context context, EventType type, long totalSize, long fileCount)
The constructor is called by the framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFileCount()
Returns the total file countlong
getTotalSize()
Returns the total size of the installation in bytesjava.lang.String
getVerbose()
Return a verbose description of this event.java.lang.String
toString()
-
Methods inherited from class com.install4j.api.events.InstallerEvent
getContext, getType, setContext, wasSuccessful
-
-
-
-
Constructor Detail
-
InstallerFileInstallationEvent
public InstallerFileInstallationEvent(java.lang.Object source, Context context, EventType type, long totalSize, long fileCount)
The constructor is called by the framework.- Parameters:
source
- the event sourcecontext
- the contexttype
- the event type.totalSize
- the total size of the installation in bytesfileCount
- the total file count
-
-
Method Detail
-
getTotalSize
public long getTotalSize()
Returns the total size of the installation in bytes- Returns:
- the size in bytes
-
getFileCount
public long getFileCount()
Returns the total file count- Returns:
- the file count
-
toString
public java.lang.String toString()
- Overrides:
toString
in classInstallerEvent
-
getVerbose
public java.lang.String getVerbose()
Description copied from class:InstallerEvent
Return a verbose description of this event.- Overrides:
getVerbose
in classInstallerEvent
- Returns:
- the description
-
-