public class Installer extends Downloader
Modifier and Type | Field and Description |
---|---|
protected static String |
UPDATER_JAR_NAME |
cancelled, count, error, itemCount, itemTotal, lastModified, total
progress
Constructor and Description |
---|
Installer(FilesCollection files,
Progress progress) |
Modifier and Type | Method and Description |
---|---|
protected static void |
deleteOrThrowException(File file) |
static Set<FileObject> |
getUpdaterFiles(FilesCollection files,
CommandService commandService,
boolean onlyUpdateable) |
static boolean |
isTheUpdaterUpdateable(FilesCollection files) |
static boolean |
isTheUpdaterUpdateable(FilesCollection files,
CommandService commandService) |
protected static boolean |
moveOutOfTheWay(File file) |
void |
moveUpdatedIntoPlace() |
protected void |
moveUpdatedIntoPlace(File sourceDirectory,
File targetDirectory) |
void |
start() |
static void |
updateTheUpdater(FilesCollection files,
Progress progress) |
static void |
updateTheUpdater(FilesCollection files,
Progress progress,
CommandService commandService) |
void |
verify(net.imagej.updater.Installer.Download download) |
cancel, download, getLastModified, start, start
addItem, addProgress, done, itemDone, removeProgress, setCount, setItemCount, setTitle
protected static final String UPDATER_JAR_NAME
public Installer(FilesCollection files, Progress progress)
public void start() throws IOException
IOException
public static Set<FileObject> getUpdaterFiles(FilesCollection files, CommandService commandService, boolean onlyUpdateable)
public static boolean isTheUpdaterUpdateable(FilesCollection files)
public static boolean isTheUpdaterUpdateable(FilesCollection files, CommandService commandService)
public static void updateTheUpdater(FilesCollection files, Progress progress) throws IOException
IOException
public static void updateTheUpdater(FilesCollection files, Progress progress, CommandService commandService) throws IOException
IOException
public void verify(net.imagej.updater.Installer.Download download)
public void moveUpdatedIntoPlace() throws IOException
IOException
protected void moveUpdatedIntoPlace(File sourceDirectory, File targetDirectory) throws IOException
IOException
protected static void deleteOrThrowException(File file) throws IOException
IOException
protected static boolean moveOutOfTheWay(File file)
Copyright © 2014–2022 ImageJ. All rights reserved.