javax.activation
Class FileTypeMap

java.lang.Object
  extended byjavax.activation.FileTypeMap
Direct Known Subclasses:
MimetypesFileTypeMap

public abstract class FileTypeMap
extends Object

FileTypeMap is an abstract class that provides a data type interface for files.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:22 $

Constructor Summary
FileTypeMap()
           
 
Method Summary
abstract  String getContentType(File file)
           
abstract  String getContentType(String filename)
           
static FileTypeMap getDefaultFileTypeMap()
          Returns the default FileTypeMap
static void setDefaultFileTypeMap(FileTypeMap map)
          Sets the default FileTypeMap for the system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTypeMap

public FileTypeMap()
Method Detail

getContentType

public abstract String getContentType(File file)

getContentType

public abstract String getContentType(String filename)

setDefaultFileTypeMap

public static void setDefaultFileTypeMap(FileTypeMap map)
Sets the default FileTypeMap for the system


getDefaultFileTypeMap

public static FileTypeMap getDefaultFileTypeMap()
Returns the default FileTypeMap



Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.