Interface MimeTyper


  • public interface MimeTyper
    Discovers the mime type of content.
    • Method Detail

      • type

        ContentType type​(java.io.InputStream inputStream,
                         java.lang.String name)
                  throws java.io.IOException
        Guesses the mime type for the given content.
        Parameters:
        inputStream - not null
        name - possibly null
        Returns:
        guessed content type, not null.
        Throws:
        java.io.IOException - in case of I/O errors.