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:
- Serializable
The event object that is passed to installer event listeners when the file installation is started.
 Event listeners are registered in the 
InstallerContext.
 This event object contains additional information about the installed files.
 The event type EventType.FILE_INSTALLATION_STARTED produces this event object when fired.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionInstallerFileInstallationEvent(Object source, Context context, EventType type, long totalSize, long fileCount) The constructor is called by the framework.
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the total file countlongReturns the total size of the installation in bytesReturn a verbose description of this event.toString()Methods inherited from class com.install4j.api.events.InstallerEventgetContext, getType, setContext, wasSuccessfulMethods inherited from class java.util.EventObjectgetSource
- 
Constructor Details- 
InstallerFileInstallationEventpublic InstallerFileInstallationEvent(Object source, Context context, EventType type, long totalSize, long fileCount) The constructor is called by the framework.- Parameters:
- source- the event source
- context- the context
- type- the event type.
- totalSize- the total size of the installation in bytes
- fileCount- the total file count
 
 
- 
- 
Method Details- 
getTotalSizepublic long getTotalSize()Returns the total size of the installation in bytes- Returns:
- the size in bytes
 
- 
getFileCountpublic long getFileCount()Returns the total file count- Returns:
- the file count
 
- 
toString- Overrides:
- toStringin class- InstallerEvent
 
- 
getVerboseDescription copied from class:InstallerEventReturn a verbose description of this event.- Overrides:
- getVerbosein class- InstallerEvent
- Returns:
- the description
 
 
-