Uses of Class javax.activation.FileTypeMap (Java Platform SE 8 )
Date: 2026-01-21

## Uses of Class
javax.activation.FileTypeMap

- Packages that use FileTypeMap
  Package | Description
  --- | ---
  javax.activation |

- - ### Uses of FileTypeMap in javax.activation

    Subclasses of FileTypeMap in javax.activation
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MimetypesFileTypeMap` This class extends FileTypeMap and provides data typing of files via their file extension.

    Methods in javax.activation that return FileTypeMap
    Modifier and Type | Method and Description
    --- | ---
    `static FileTypeMap` | FileTypeMap.`getDefaultFileTypeMap()` Return the default FileTypeMap for the system.

    Methods in javax.activation with parameters of type FileTypeMap
    Modifier and Type | Method and Description
    --- | ---
    `static void` | FileTypeMap.`setDefaultFileTypeMap(FileTypeMap fileTypeMap)` Sets the default FileTypeMap for the system.
    `void` | FileDataSource.`setFileTypeMap(FileTypeMap map)` Set the FileTypeMap to use with this FileDataSource

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.