GigaSpaces XAP 9.7.2 API

org.openspaces.core.util
Class FileUtils

java.lang.Object
  extended by 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

Constructor Summary
FileUtils()
           
 
Method Summary
static File createTempFolder(String tempFolderPrefix)
           
static void deleteFileOrDirectory(File fileOrDirectory)
           
static byte[] unzipFileToMemory(String applicationFile, File directoryOrZip, long maxFileSizeInBytes)
           
static File unzipToTempFolder(File zipFile)
          unzips the specified zip file to a temp folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

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)

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.