org.sakaiproject.tool.assessment.util
Class MimeType

java.lang.Object
  extended by org.sakaiproject.tool.assessment.util.MimeType

public class MimeType
extends Object

In memory mime type lookup utility class. We could also load from config file/table...

Version:
$Id: MimeType.java 9273 2006-05-10 22:34:28Z daisyf@stanford.edu $
Author:
esmiley@stanford.edu

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

MimeType

public MimeType()
Method Detail

main

public static void main(String[] args)
command line unit test

Parameters:
args - command line args

get

public static String get(String extension)
get a mime type from an extension

Parameters:
extension - the extension
Returns:
the mime type

getExtension

public static String getExtension(String mimeType)
get an extension form a mime type

Parameters:
mimeType - the mime type
Returns:
the extension


Copyright © 2005-2012 Sakai Project. All Rights Reserved.