public class MimeTable extends Object implements FileNameMap
Modifier and Type | Field and Description |
---|---|
static Properties |
types
A hash table containing the mapping between extensions and mime types.
|
static String |
UNKNOWN |
Constructor and Description |
---|
MimeTable()
Constructs a MIME table using the default values defined in this class.
|
public static final String UNKNOWN
public static final Properties types
public MimeTable()
public String getContentTypeFor(String filename)
getContentTypeFor
in interface FileNameMap
filename
- The file whose extension will be mapped.