Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class TempFileUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.TempFileUtil

public class TempFileUtil
extends Object


Field Summary
static String SUFFIX_TEMP_FILE_NAME
           
 
Constructor Summary
TempFileUtil()
           
 
Method Summary
static String addTempFile(long userId, String tempPathName, File file)
           
static String addTempFile(long userId, String fileName, String tempPathName, File file)
           
static String addTempFile(long userId, String fileName, String tempPathName, InputStream inputStream)
           
static String addTempFile(String tempPathName, File file)
           
static String addTempFile(String fileName, String tempPathName, File file)
           
static void deleteTempFile(long userId, String fileName, String tempPathName)
           
static void deleteTempFile(String tempFileName)
           
static void deleteTempFile(String fileName, String tempPathName)
           
static InputStream getTempFileAsStream(String tempFileName)
           
static String[] getTempFileEntryNames(long userId, String tempPathName)
           
static String[] getTempFileEntryNames(String tempPathName)
           
static String getTempFileName(long userId, String fileName, String tempPathName)
           
static long getTempFileSize(String tempFileName)
           
protected static String getTempFolderName(long userId, String tempPathName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUFFIX_TEMP_FILE_NAME

public static final String SUFFIX_TEMP_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

TempFileUtil

public TempFileUtil()
Method Detail

addTempFile

public static String addTempFile(long userId,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(long userId,
                                 String fileName,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(long userId,
                                 String fileName,
                                 String tempPathName,
                                 InputStream inputStream)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(String fileName,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(long userId,
                                  String fileName,
                                  String tempPathName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(String tempFileName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(String fileName,
                                  String tempPathName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getTempFileAsStream

public static InputStream getTempFileAsStream(String tempFileName)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getTempFileEntryNames

public static String[] getTempFileEntryNames(long userId,
                                             String tempPathName)

getTempFileEntryNames

public static String[] getTempFileEntryNames(String tempPathName)

getTempFileName

public static String getTempFileName(long userId,
                                     String fileName,
                                     String tempPathName)
                              throws PortalException
Throws:
PortalException

getTempFileSize

public static long getTempFileSize(String tempFileName)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getTempFolderName

protected static String getTempFolderName(long userId,
                                          String tempPathName)
                                   throws PortalException
Throws:
PortalException

Liferay 6.1.2-ce-ga3