Package org.apache.any23.mime

## Class NaiveMIMETypeDetector

- java.lang.Object
- - org.apache.any23.mime.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 Summary

    Constructors
    Constructor | Description
    --- | ---
    `NaiveMIMETypeDetector()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `org.apache.any23.mime.MIMEType` | `guessMIMEType​(String fileName, InputStream input, org.apache.any23.mime.MIMEType mimeTypeFromMetadata)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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`