Detects the content type of the given input document.
Detects the content type of the given input document.
input stream
MIME type hint, i.e. 'application/json', 'text/plain' etc.
returns application/octet-stream if the type of the document can not be detected, or the detected type.
IOException
if the document input stream could not be read
Detects the content type of the given input document
Detects the content type of the given input document
input document
maximum number of bytes to parse during detection
MIME type hint, i.e. 'application/json', 'text/plain' etc.
returns application/octet-stream if the type of the document can not be detected, or the detected type.
IOException
if the document input stream could not be read
Tika helper