Package org.mycore.datamodel.niofs
Class MCRContentTypes
java.lang.Object
org.mycore.datamodel.niofs.MCRContentTypes
- Author:
- Thomas Scheffler (yagee)
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
probeContentType
(Path path) Probes the content type of a file.
-
Method Details
-
probeContentType
Probes the content type of a file. Same asFiles.probeContentType(Path)
but uses context class loader.- Parameters:
path
- the path to the file to probe- Returns:
- The content type of the file, or null if the content type cannot be determined
- Throws:
IOException
- if an I/O error occurs
-