org.openspaces.core.util
Class FileUtils
java.lang.Object
org.openspaces.core.util.FileUtils
public class FileUtils
- extends Object
- Since:
- 9.0.1
TODO: Replace with commons-io once it is approved as an openspaces dependency
- Author:
- itaif
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtils
public FileUtils()
deleteFileOrDirectory
public static void deleteFileOrDirectory(File fileOrDirectory)
unzipToTempFolder
public static File unzipToTempFolder(File zipFile)
- unzips the specified zip file to a temp folder
- Parameters:
zipFile
-
- Returns:
- the new temp folder
- Since:
- 9.0.1
createTempFolder
public static File createTempFolder(String tempFolderPrefix)
unzipFileToMemory
public static byte[] unzipFileToMemory(String applicationFile,
File directoryOrZip,
long maxFileSizeInBytes)
Copyright © GigaSpaces.