Interface MimeTyper


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

    Modifier and Type
    Method
    Description
    type​(InputStream inputStream, String name)
    Guesses the mime type for the given content.
  • Method Details

    • type

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