Class InstallerFileInstallationEvent

java.lang.Object
java.util.EventObject
com.install4j.api.events.InstallerEvent
com.install4j.api.events.InstallerFileInstallationEvent
All Implemented Interfaces:
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 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:
  • Constructor Details Link icon

    • InstallerFileInstallationEvent Link icon

      public 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 Link icon

    • getTotalSize Link icon

      public long getTotalSize()
      Returns the total size of the installation in bytes
      Returns:
      the size in bytes
    • getFileCount Link icon

      public long getFileCount()
      Returns the total file count
      Returns:
      the file count
    • toString Link icon

      public String toString()
      Overrides:
      toString in class InstallerEvent
    • getVerbose Link icon

      public String getVerbose()
      Description copied from class: InstallerEvent
      Return a verbose description of this event.
      Overrides:
      getVerbose in class InstallerEvent
      Returns:
      the description