Class NaiveMIMETypeDetector

  • All Implemented Interfaces:
    org.apache.any23.mime.MIMETypeDetector

    public class NaiveMIMETypeDetector
    extends Object
    implements org.apache.any23.mime.MIMETypeDetector
    Basic implementation of MIMETypeDetector based on file extensions.
    • Constructor Detail

      • NaiveMIMETypeDetector

        public NaiveMIMETypeDetector()
    • Method Detail

      • guessMIMEType

        public org.apache.any23.mime.MIMEType guessMIMEType​(String fileName,
                                                            InputStream input,
                                                            org.apache.any23.mime.MIMEType mimeTypeFromMetadata)
        Specified by:
        guessMIMEType in interface org.apache.any23.mime.MIMETypeDetector