Uses of Class
eu.medsea.mimeutil.MimeType

Packages that use MimeType
eu.medsea.mimeutil   
 

Uses of MimeType in eu.medsea.mimeutil
 

Subclasses of MimeType in eu.medsea.mimeutil
 class TextMimeType
          This class can be used to represent a mime type for a text file.
 

Fields in eu.medsea.mimeutil declared as MimeType
static MimeType MimeUtil.DIRECTORY_MIME_TYPE
          Mime type used to identify a directory
static MimeType MimeUtil.UNKNOWN_MIME_TYPE
          Mime type used to identify a directory
 

Methods in eu.medsea.mimeutil that return MimeType
static MimeType MimeUtil.getFirstMimeType(String mimeTypes)
          Get the first in a comma separated list of mime types.
static MimeType MimeUtil.getMostSpecificMimeType(Collection mimeTypes)
          Get the most specific match of the Collection of mime types passed in.
static MimeType MimeUtil.getPreferedMimeType(String accept, String canProvide)
          Gives you the best match for your requirements.
 

Methods in eu.medsea.mimeutil with parameters of type MimeType
static void MimeUtil.addKnownMimeType(MimeType mimeType)
          While MimeType(s) are being loaded by the MimeDetector(s) they should be added to the list of known mime types.
static Collection MimeUtil.getMimeTypes(byte[] data, MimeType unknownMimeType)
          TODO: Add desription
static Collection MimeUtil.getMimeTypes(File file, MimeType unknownMimeType)
          Get all of the matching mime types for this file object.
static Collection MimeUtil.getMimeTypes(InputStream in, MimeType unknownMimeType)
          Get all of the matching mime types for this InputStream object.
static Collection MimeUtil.getMimeTypes(String fileName, MimeType unknownMimeType)
          Get all of the matching mime types for this file name .
static Collection MimeUtil.getMimeTypes(URLConnection url, MimeType unknownMimeType)
          Get all of the matching mime types for this URLConnection object.
static boolean MimeUtil.isMimeTypeKnown(MimeType mimeType)
          Check to see if this mime type is one of the types seen during initialisation or has been added at some later stage using addKnownMimeType(...)
static boolean MimeUtil.isTextMimeType(MimeType mimeType)
          Utility convenience method to check if a particular MimeType instance is actually a TextMimeType.
 

Constructors in eu.medsea.mimeutil with parameters of type MimeType
MimeType(MimeType mimeType)
          Construct a MimeType from another MimeType instance
TextMimeType(MimeType mimeType)
          Construct a new TestMimeType from an existing MimeType
 



Copyright © 2007-2009 Medsea Business Solutions S.L.. All Rights Reserved.