public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
copyDirectory(File source,
File target) |
static boolean |
copyDirectory(File source,
File target,
String saveSuffix) |
static boolean |
copyDirectory(ProgressMonitor progress,
File source,
File target) |
static boolean |
copyDirectory(ProgressMonitor progress,
File source,
File target,
String saveSuffix)
Copy files under the source directory to the target
directory.
|
static boolean |
copyFile(File source,
File target) |
static boolean |
copyFile(File source,
File target,
String saveSuffix) |
static boolean |
copyFile(ProgressMonitor progress,
File source,
File target) |
static boolean |
copyFile(ProgressMonitor progress,
File source,
File target,
String saveSuffix)
Copy the source file to target.
|
static boolean |
copyJar(File source,
File target) |
static boolean |
copyJar(File source,
File target,
String saveSuffix) |
static boolean |
copyJar(ProgressMonitor progress,
File source,
File target) |
static boolean |
copyJar(ProgressMonitor progress,
File source,
File target,
String saveSuffix)
Extract files from the source jar file to the target
directory.
|
static String |
getPath(File f) |
public static final boolean copyDirectory(ProgressMonitor progress, File source, File target)
public static final boolean copyDirectory(File source, File target, String saveSuffix)
public static final boolean copyDirectory(ProgressMonitor progress, File source, File target, String saveSuffix)
progress
- if non-null, this progress monitor is updated
with the name of each file as it is copied.source
- source directorytarget
- directorysaveSuffix
- if non-null, pre-existing files under target
whose paths match files to be copied from
source will be renamed to
name + saveSuffix.public static final boolean copyFile(ProgressMonitor progress, File source, File target)
public static final boolean copyFile(ProgressMonitor progress, File source, File target, String saveSuffix)
progress
- if non-null, this progress monitor is updated
with the name of each file as it is copied.source
- source directorytarget
- target file/directorysaveSuffix
- if non-null and target exists,
target will be renamed to
name + saveSuffix.public static final boolean copyJar(ProgressMonitor progress, File source, File target)
public static final boolean copyJar(ProgressMonitor progress, File source, File target, String saveSuffix)
progress
- if non-null, this progress monitor is updated
with the name of each file as it is copied.source
- source jar filetarget
- directorysaveSuffix
- if non-null, pre-existing files in target
whose paths match files to be copied from
source will be renamed to
name + saveSuffix.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.