com.ivata.mask.util
Class MimeTypesHandling

java.lang.Object
  extended bycom.ivata.mask.util.MimeTypesHandling

public final class MimeTypesHandling
extends java.lang.Object

MimeTypeHandling is a class of static methods for handling MimeTypes. It contains methods for getting MimeType information from filenames etc..

Don't create an instance of this class; use the static final methods.

Since:
ivata masks 0.4 (2001-12-27)
Version:
$Revision: 1.3 $ /
Author:
Peter Illes

Method Summary
static java.lang.String fileName2Icon(java.lang.String filename)
          /**
static java.lang.String mimeType2Icon(java.lang.String mimeType)
           Returns the full path to the appropriate icon for this mime-type that the webapp will use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fileName2Icon

public static java.lang.String fileName2Icon(java.lang.String filename)
/**

This method returns an appropriate mime-icon-image name from a filename (or rather from the extension of the file).

Parameters:
filename - a String which is the name of the file.
Returns:
the full path to the image (in the webapp) representing this file-types

mimeType2Icon

public static java.lang.String mimeType2Icon(java.lang.String mimeType)

Returns the full path to the appropriate icon for this mime-type that the webapp will use.

Parameters:
mimeType - as string
Returns:
the path to the image for use by webapp


Copyright © 2001-2005 ivata limited. All Rights Reserved.