Package org.duracloud.common.util
Class MimetypeUtil
- java.lang.Object
-
- org.duracloud.common.util.MimetypeUtil
-
public class MimetypeUtil extends Object
Determines the MIME type of a file. This is currently not a very robust implementation. Using this method the mime type is determined based on the file extension, and the mapping comes from the file content-types.properties under the lib/ directory of the running JRE
-
-
Constructor Summary
Constructors Constructor Description MimetypeUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMimeType(File file)StringgetMimeType(String fileName)
-