Interface IMimeTypeChecker

All Known Implementing Classes:
FilesMimeTypeChecker, TikaMimeTypeChecker

public interface IMimeTypeChecker
Interface for MIME type detectors
  • Method Summary

    Modifier and Type
    Method
    Description
    getMimeType(String filePath)
    Get the MIME type of some file path string.
    Get the MIME type of some file path.
  • Method Details

    • getMimeType

      String getMimeType(Path path) throws IOException
      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

      String getMimeType(String filePath) throws IOException
      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