API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.activation. MimetypesFileTypeMap View Source
Author(s)
Bart Calder
Bill Shannon
Since
1.6
Version
Serial
Hierarchy
 Object
      FileTypeMap
          MimetypesFileTypeMap
Implements
Subclasses
Description
public class MimetypesFileTypeMap
  This class extends FileTypeMap and provides data typing of files via their file extension.
See also:   
Constructors
public MimetypesFileTypeMap ()
The default constructor.
public MimetypesFileTypeMap (InputStream is)
  Construct a MimetypesFileTypeMap with programmatic entries added from the InputStream.
public MimetypesFileTypeMap (String mimeTypeFileName) throws IOException
  Construct a MimetypesFileTypeMap with programmatic entries added from the named file.
Methods
Hide/Show inherited methods
publicsynchronized void addMimeTypes (String mime_types)
  Prepend the MIME type values to the registry.
public String getContentType (File f) [Specified in FileTypeMap]
  Return the MIME type of the file object.
publicsynchronized String getContentType (String filename) [Specified in FileTypeMap]
  Return the MIME type based on the specified file name.
publicstatic FileTypeMap getDefaultFileTypeMap () [Inherited From FileTypeMap]
  Return the default FileTypeMap for the system.
publicstatic void setDefaultFileTypeMap (FileTypeMap map) [Inherited From FileTypeMap]
  Sets the default FileTypeMap for the system.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar