org.ops4j.util.mime
Class MimeTypeHandler

java.lang.Object
  extended by org.ops4j.util.mime.MimeTypeHandler

public final class MimeTypeHandler
extends java.lang.Object

Mimetype utility hanlder.


Method Summary
static java.lang.String getMimeType(java.lang.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 java.lang.String getMimeType(java.lang.String artifactType)
Return the mimetype given a artifact type.

Parameters:
artifactType - the artifact type such as "block", "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


Copyright © 2006-2008 OPS4J - Open Participation Software for Java. All Rights Reserved.