Class MultiFileUploadUtil
- java.lang.Object
-
- lumis.doui.control.multifileupload.MultiFileUploadUtil
-
public abstract class MultiFileUploadUtil extends Object
A Utility class forMultiFileUploadControl
.- Since:
- 6.1.0
- Version:
- $Revision: 16833 $ $Date: 2015-01-26 17:20:56 -0200 (Mon, 26 Jan 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
PATTERN_INVALID_CHARACTERS_FILE_NAME
Pattern that determines whether the characters in the file name are invalid.static String
RESOURCE_PATH
Control's resource path.static String
SUBCONTROL_PREFIX
Prefix to be used in generated sub-controls.
-
Constructor Summary
Constructors Constructor Description MultiFileUploadUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getContentType(String filePath)
Gets content type based on the given file path.static String
getTempPath(String relativePath)
Gets an temporary path based on relative path.static String
getUploadPath(String relativePath)
Gets an upload path based on relative path.
-
-
-
Field Detail
-
SUBCONTROL_PREFIX
public static final String SUBCONTROL_PREFIX
Prefix to be used in generated sub-controls.- Since:
- 6.1.0
- See Also:
- Constant Field Values
-
PATTERN_INVALID_CHARACTERS_FILE_NAME
public static final Pattern PATTERN_INVALID_CHARACTERS_FILE_NAME
Pattern that determines whether the characters in the file name are invalid.- Since:
- 6.1.0
-
RESOURCE_PATH
public static final String RESOURCE_PATH
Control's resource path.- Since:
- 6.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUploadPath
public static String getUploadPath(String relativePath)
Gets an upload path based on relative path.- Parameters:
relativePath
- the relative path.- Returns:
- the upload path.
- Since:
- 6.1.0
-
getTempPath
public static String getTempPath(String relativePath)
Gets an temporary path based on relative path.- Parameters:
relativePath
- the relative path.- Returns:
- the temporary path.
- Since:
- 6.1.0
-
getContentType
public static String getContentType(String filePath) throws IOException
Gets content type based on the given file path.- Parameters:
filePath
- the file path.- Returns:
- content type.
- Throws:
IOException
- if an IO error occured.- Since:
- 6.1.0
-
-