Class MCRContentTypes

java.lang.Object
org.mycore.datamodel.niofs.MCRContentTypes

public class MCRContentTypes extends Object
Author:
Thomas Scheffler (yagee)
  • Method Details

    • probeContentType

      public static String probeContentType(Path path) throws IOException
      Probes the content type of a file. Same as Files.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