|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.util.MimeTypeMapper
public class MimeTypeMapper
A class that tries to guess mime types based on file extensions.
Constructor Summary | |
---|---|
MimeTypeMapper()
|
Method Summary | |
---|---|
static java.lang.String |
getMimeType(java.lang.String filename)
Try to guess the mime type based on the given filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeTypeMapper()
Method Detail |
---|
public static java.lang.String getMimeType(java.lang.String filename)
filename
- the name of the file to guess the mime type for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |