jakarta.activation.FileTypeMap, jakarta.activation.FileDataSource, jakarta.activation.MimetypesFileTypeMap
| Modifier and Type | Field and Description |
|---|---|
| private static FileTypeMap | |
| private static Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | Returns: The content type.A file to be typed. file)Return the type of the file object. |
| public abstract String | Returns: The content type.the pathname of the file. filename)Return the type of the file passed in. This method should always return a valid MIME type. |
| public static synchronized FileTypeMap | Returns: The default FileTypeMapReturn the default FileTypeMap for the system. |
| public static synchronized void | setDefaultFileTypeMap(FileTypeMap
The FileTypeMap. fileTypeMap)Sets the default FileTypeMap for the system. |
| defaultMap | back to summary |
|---|---|
| private static FileTypeMap defaultMap | |
| map | back to summary |
|---|---|
| private static Map<ClassLoader, FileTypeMap> map | |
| FileTypeMap | back to summary |
|---|---|
| public FileTypeMap() The default constructor. | |
| getContentType | back to summary |
|---|---|
| public abstract String getContentType(File file) Return the type of the file object. This method should always return a valid MIME type. | |
| getContentType | back to summary |
|---|---|
| public abstract String getContentType(String filename) Return the type of the file passed in. This method should always return a valid MIME type. | |
| getDefaultFileTypeMap | back to summary |
|---|---|
| public static synchronized FileTypeMap getDefaultFileTypeMap() Return the default FileTypeMap for the system.
If setDefaultFileTypeMap was called, return
that instance, otherwise return an instance of
| |
| setDefaultFileTypeMap | back to summary |
|---|---|
| public static synchronized void setDefaultFileTypeMap(FileTypeMap fileTypeMap) Sets the default FileTypeMap for the system. This instance will be returned to callers of getDefaultFileTypeMap.
| |