net.dpml.util
Class MimeTypeHandler

java.lang.Object
  extended by net.dpml.util.MimeTypeHandler

public final class MimeTypeHandler
extends Object

Mimetype utility handler.

Version:
1.1.0
Author:
Digital Product Meta Library

Method Summary
static String getMimeType(String artifactType)
          Return the mimetype given a artifact type.
static int getMimeTypesSize()
          Returns the number of MimeTypes that has been defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMimeType

public static String getMimeType(String artifactType)
Return the mimetype given a artifact type.

Parameters:
artifactType - the artifact type such as "part", "jar", etc.
Returns:
the matching mimetype of null if unknown

getMimeTypesSize

public static int getMimeTypesSize()
Returns the number of MimeTypes that has been defined. Only for use with testcases.

Returns:
the known mimetype count