Interface MIMETypeDetector

    • Method Detail

      • guessMIMEType

        MIMEType guessMIMEType​(String fileName,
                               InputStream input,
                               MIMEType mimeTypeFromMetadata)
        Estimates the MIME type of the content of input file.
        Parameters:
        fileName - name of the file.
        input - content of the file.
        mimeTypeFromMetadata - mimetype declared in metadata.
        Returns:
        the supposed mime type or null if nothing appropriate found.