Package com.github.fungal.api.util
Class FileUtil
java.lang.Object
com.github.fungal.api.util.FileUtil
An utility for JAR type files
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileUtil
public FileUtil()Constructor
-
-
Method Details
-
compress
Compress a directory in a JAR layout to a file- Parameters:
directory- The directorytarget- The JAR file- Throws:
IOException- Thrown if an error occurs
-
extract
Extract a JAR type file- Parameters:
file- The filedirectory- The directory where the file should be extracted- Returns:
- The root of the extracted JAR file
- Throws:
IOException- Thrown if an error occurs
-
copy
Copy- Parameters:
src- The sourcedest- The destination- Throws:
IOException- Thrown if a file could not be deleted
-
delete
Recursive delete- Parameters:
f- The file handler- Throws:
IOException- Thrown if a file could not be deleted
-