|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.util.FileTypeUtil
public class FileTypeUtil
This class helps resolve properties about files. It expects there to be a mime.types file accessable in the classpath of the running application to function properly.
| Constructor Summary | |
|---|---|
FileTypeUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getContentType(java.io.File file)
This probably has an issue with files named with upper case suffixes, as fileTypeMap.getContentType("foo.PNG") doesn't work. |
static java.lang.String |
getContentType(java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTypeUtil()
| Method Detail |
|---|
public static java.lang.String getContentType(java.lang.String fileName)
public static java.lang.String getContentType(java.io.File file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||