com.liferay.portal.kernel.util
Class TempFileUtil
java.lang.Object
com.liferay.portal.kernel.util.TempFileUtil
public class TempFileUtil
- extends Object
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 |
SUFFIX_TEMP_FILE_NAME
public static final String SUFFIX_TEMP_FILE_NAME
- See Also:
- Constant Field Values
TempFileUtil
public TempFileUtil()
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