Package dk.gtz.graphedit.serialization
Interface IMimeTypeChecker
- All Known Implementing Classes:
FilesMimeTypeChecker
,TikaMimeTypeChecker
public interface IMimeTypeChecker
Interface for MIME type detectors
-
Method Summary
Modifier and TypeMethodDescriptiongetMimeType
(String filePath) Get the MIME type of some file path string.getMimeType
(Path path) Get the MIME type of some file path.
-
Method Details
-
getMimeType
Get the MIME type of some file path.- Parameters:
path
- a file path- Returns:
- MIME type string.
null
if the mime type is not recognized - Throws:
IOException
- if the path does not point to a proper file
-
getMimeType
Get the MIME type of some file path string.- Parameters:
filePath
- a file path string- Returns:
- MIME type string.
null
if the mime type is not recognized - Throws:
IOException
- if the path does not point to a proper file
-