public class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.lang.String source,
java.lang.String destination)
copy the file of a given URL to the given destination
|
static void |
copy(java.net.URL source,
java.lang.String destination)
copy the file of a given URL to the given destination
|
static void |
deleteFile(java.lang.String filename)
deletes a file
|
static void |
extractFile(java.lang.String jarArchive,
java.lang.String fileToExtract,
java.lang.String destination)
extract a file from a jar archive
|
public static void copy(java.net.URL source, java.lang.String destination)
source
- URL: the URL of the source filedestination
- String: the filename of the destinationpublic static void copy(java.lang.String source, java.lang.String destination)
source
- String: the name of the source filedestination
- String: the filename of the destinationpublic static void deleteFile(java.lang.String filename)
filename
- String: the name of the file to be deleted.public static void extractFile(java.lang.String jarArchive, java.lang.String fileToExtract, java.lang.String destination)
jarArchive
- String: the filename of the source archivefileToExtract
- String: the name of the file to extract (full path from
archive root)