Package com.install4j.api.events
Class InstallerFileEvent
java.lang.Object
java.util.EventObject
com.install4j.api.events.InstallerEvent
com.install4j.api.events.InstallerFileEvent
- All Implemented Interfaces:
- Serializable
The event object that is passed to installer event listeners for single file installation events types.
 Event listeners are registered in the 
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.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionInstallerFileEvent(Object source, Context context, EventType type, boolean success, File destinationFile, long fileSize) The constructor is called by the framework.InstallerFileEvent(Object source, Context context, EventType type, File destinationFile, long fileSize) The constructor is called by the framework.
- 
Method SummaryModifier and TypeMethodDescriptionGet the installed file location associated with this event.longGet the size of the installed file in bytes.Return 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- 
InstallerFileEventpublic InstallerFileEvent(Object source, Context context, EventType type, boolean success, File destinationFile, long fileSize) The constructor is called by the framework.- Parameters:
- source- the event source
- context- the context
- type- the event type.
- success- whether the operation associated with the event was successful
- destinationFile- the installed file
- fileSize- the size of the installed file
 
- 
InstallerFileEventpublic InstallerFileEvent(Object source, Context context, EventType type, File destinationFile, long fileSize) The constructor is called by the framework.- Parameters:
- source- the event source
- context- the context
- type- the event type.
- destinationFile- the installed file
- fileSize- the size of the installed file
 
 
- 
- 
Method Details- 
getDestinationFileGet the installed file location associated with this event.- Returns:
- the file
 
- 
getFileSizepublic long getFileSize()Get the size of the installed file in bytes.- Returns:
- the size in bytes
 
- 
toString- Overrides:
- toStringin class- InstallerEvent
 
- 
getVerboseDescription copied from class:InstallerEventReturn a verbose description of this event.- Overrides:
- getVerbosein class- InstallerEvent
- Returns:
- the description
 
 
-