Java Utililty Methods Path File Mime Type nio

List of utility methods to do Path File Mime Type nio

Description

The list of methods to do Path File Mime Type nio are organized into topic(s).

Method

StringgetMimeType(Path path)
Gets a file's content type.
return Files.probeContentType(path);
StringgetMimeType(String absolutePath)
get Mime Type
Path path = Paths.get(absolutePath);
return java.nio.file.Files.probeContentType(path);