|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.file.FileUtil
public class FileUtil
Utility methods for file manipulation.
Constructor Summary | |
---|---|
FileUtil()
|
Method Summary | |
---|---|
static java.lang.String |
calculateWWWFileRelativePath(java.lang.String fullPath)
Calculates the physical path to the www folder according to a given full path. |
static void |
deletePortalFile(PortalFile portalFile)
Deletes portal file and all empty ancestor folders. |
static java.lang.String |
getContentType(java.io.File file)
Gets content type based on the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUtil()
Method Detail |
---|
public static java.lang.String getContentType(java.io.File file) throws java.io.IOException
file
- the file.
java.io.IOException
- if an IO error occured.public static java.lang.String calculateWWWFileRelativePath(java.lang.String fullPath)
fullPath
- of the file to its www path calculated.
public static void deletePortalFile(PortalFile portalFile)
portalFile
- the file
to be deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |