|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.util.MimeType
public class MimeType
In memory mime type lookup utility class. We could also load from config file/table...
| Constructor Summary | |
|---|---|
MimeType()
|
|
| Method Summary | |
|---|---|
static String |
get(String extension)
get a mime type from an extension |
static String |
getExtension(String mimeType)
get an extension form a mime type |
static void |
main(String[] args)
command line unit test |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MimeType()
| Method Detail |
|---|
public static void main(String[] args)
args - command line argspublic static String get(String extension)
extension - the extension
public static String getExtension(String mimeType)
mimeType - the mime type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||