Package loci.formats

Class UpgradeChecker

java.lang.Object
loci.formats.UpgradeChecker

public class UpgradeChecker extends Object
Class that allows checking for new versions of Bio-Formats, as well as updating to the latest stable, daily, or trunk version.
  • Field Details

  • Constructor Details

    • UpgradeChecker

      public UpgradeChecker()
  • Method Details

    • alreadyChecked

      public boolean alreadyChecked()
      Return true if an upgrade check has already been performed in this JVM session.
    • canDoUpgradeCheck

      public boolean canDoUpgradeCheck()
      Return whether or not we are ever allowed to perform an upgrade check.
    • setCanDoUpgradeCheck

      public void setCanDoUpgradeCheck(boolean canDo)
      Set whether or not we are ever allowed to perform an upgrade check.
    • newVersionAvailable

      public boolean newVersionAvailable(String caller)
      Contact the OME registry and return true if a new version is available. OMERO.registry will identify this as a generic library usage of Bio-Formats (i.e. not associated with a specific client application).
      Parameters:
      caller - name of the calling application, e.g. "MATLAB"
    • newVersionAvailable

      public boolean newVersionAvailable(String registryID, String caller)
      Contact the OME registry and return true if a new version is available.
      Parameters:
      registryID - how the application identifies itself to OMERO.registry
      caller - name of the calling application, e.g. "MATLAB"
      See Also:
    • installIndividualJars

      @Deprecated public boolean installIndividualJars(String urlDir, String downloadDir)
      Deprecated.
      since 9.0.0
      Download and install all of the individual JAR files into the given directory.
      Parameters:
      urlDir - the location from which to download the JAR files
      downloadDir - the directory into which to save the JAR files
      Returns:
      true if installation was successfull
      See Also:
    • install

      @Deprecated public boolean install(String urlPath, String downloadPath)
      Deprecated.
      since 9.0.0
      Download and install a JAR file from the given URL.
      Parameters:
      urlPath - the location from which to download the JAR
      downloadPath - the location in which to write the JAR; if this location already exists, it will be overwritten
      Returns:
      true if installation was successful