Liferay 7.0-ce-b4

com.liferay.portal.fabric.netty.fileserver
Class FileHelperUtil

java.lang.Object
  extended by com.liferay.portal.fabric.netty.fileserver.FileHelperUtil

public class FileHelperUtil
extends Object


Field Summary
static java.nio.file.Path TEMP_DIR_PATH
           
 
Constructor Summary
FileHelperUtil()
           
 
Method Summary
static void delete(boolean quiet, java.nio.file.Path... paths)
           
static void delete(java.nio.file.Path... paths)
           
static void move(java.nio.file.Path fromPath, java.nio.file.Path toPath)
           
static void move(java.nio.file.Path fromPath, java.nio.file.Path toPath, boolean tryAtomicMove)
           
static java.nio.file.Path unzip(java.nio.file.Path sourcePath, java.nio.file.Path destDirPath)
           
static long unzip(ZipInputStream zipInputStream, java.nio.file.Path destPath)
           
static java.nio.file.Path zip(java.nio.file.Path sourcePath, java.nio.file.Path destDirPath, CompressionLevel compressionLevel)
           
static long zip(java.nio.file.Path sourcePath, ZipOutputStream zipOutputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMP_DIR_PATH

public static final java.nio.file.Path TEMP_DIR_PATH
Constructor Detail

FileHelperUtil

public FileHelperUtil()
Method Detail

delete

public static void delete(boolean quiet,
                          java.nio.file.Path... paths)

delete

public static void delete(java.nio.file.Path... paths)

move

public static void move(java.nio.file.Path fromPath,
                        java.nio.file.Path toPath)
                 throws IOException
Throws:
IOException

move

public static void move(java.nio.file.Path fromPath,
                        java.nio.file.Path toPath,
                        boolean tryAtomicMove)
                 throws IOException
Throws:
IOException

unzip

public static java.nio.file.Path unzip(java.nio.file.Path sourcePath,
                                       java.nio.file.Path destDirPath)
                                throws IOException
Throws:
IOException

unzip

public static long unzip(ZipInputStream zipInputStream,
                         java.nio.file.Path destPath)
                  throws IOException
Throws:
IOException

zip

public static java.nio.file.Path zip(java.nio.file.Path sourcePath,
                                     java.nio.file.Path destDirPath,
                                     CompressionLevel compressionLevel)
                              throws IOException
Throws:
IOException

zip

public static long zip(java.nio.file.Path sourcePath,
                       ZipOutputStream zipOutputStream)
                throws IOException
Throws:
IOException

Liferay 7.0-ce-b4