|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.util.MimeUtils
public class MimeUtils
Guess the mime type of a file, given its extension. Useful when the browser did not provide it. This is a simplified list, more complete lists are available e.g. in the apache sources.
| Constructor Summary | |
|---|---|
MimeUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
guessMimeType(java.lang.String fileName)
|
static boolean |
requiresCharset(java.lang.String mimeType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeUtils()
| Method Detail |
|---|
public static boolean requiresCharset(java.lang.String mimeType)
mimeType - The MIME Content-Type to consider
public static java.lang.String guessMimeType(java.lang.String fileName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||