Package dk.gtz.graphedit.serialization
Class TikaMimeTypeChecker
java.lang.Object
dk.gtz.graphedit.serialization.TikaMimeTypeChecker
- All Implemented Interfaces:
IMimeTypeChecker
MIME type checker implementation using the
Tika's implementation-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
TikaMimeTypeChecker
public TikaMimeTypeChecker()Construct a new instance
-
-
Method Details
-
getMimeType
Description copied from interface:IMimeTypeCheckerGet the MIME type of some file path.- Specified by:
getMimeTypein interfaceIMimeTypeChecker- Parameters:
path- a file path- Returns:
- MIME type string.
nullif the mime type is not recognized - Throws:
IOException- if the path does not point to a proper file
-
getMimeType
Description copied from interface:IMimeTypeCheckerGet the MIME type of some file path string.- Specified by:
getMimeTypein interfaceIMimeTypeChecker- Parameters:
filePath- a file path string- Returns:
- MIME type string.
nullif the mime type is not recognized - Throws:
IOException- if the path does not point to a proper file
-