public class MultiFileTypeMap
extends javax.activation.FileTypeMap
Constructor and Description |
---|
MultiFileTypeMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(javax.activation.FileTypeMap fileTypeMap) |
java.lang.String |
getContentType(java.io.File file)
Return the type of the file object.
|
java.lang.String |
getContentType(java.lang.String filename)
Return the type of the file passed in.
|
public void add(javax.activation.FileTypeMap fileTypeMap)
public java.lang.String getContentType(java.io.File file)
getContentType
in class javax.activation.FileTypeMap
file
- A file to be typed.public java.lang.String getContentType(java.lang.String filename)
getContentType
in class javax.activation.FileTypeMap
filename
- The pathname of the file.