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 Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionInstallerFileEvent(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 Summary
Modifier 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.InstallerEvent
getContext, getType, setContext, wasSuccessfulMethods inherited from class java.util.EventObject
getSource 
- 
Constructor Details
- 
InstallerFileEvent
public InstallerFileEvent(Object source, Context context, EventType type, boolean success, File destinationFile, long fileSize) The constructor is called by the framework.- Parameters:
 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 file
 - 
InstallerFileEvent
public InstallerFileEvent(Object source, Context context, EventType type, File destinationFile, long fileSize) The constructor is called by the framework.- Parameters:
 source- the event sourcecontext- the contexttype- the event type.destinationFile- the installed filefileSize- the size of the installed file
 
 - 
 - 
Method Details
- 
getDestinationFile
Get the installed file location associated with this event.- Returns:
 - the file
 
 - 
getFileSize
public long getFileSize()Get the size of the installed file in bytes.- Returns:
 - the size in bytes
 
 - 
toString
- Overrides:
 toStringin classInstallerEvent
 - 
getVerbose
Description copied from class:InstallerEventReturn a verbose description of this event.- Overrides:
 getVerbosein classInstallerEvent- Returns:
 - the description
 
 
 -