Package org.apache.any23.mime
Interface MIMETypeDetector
-
- All Known Implementing Classes:
NaiveMIMETypeDetector,TikaMIMETypeDetector
public interface MIMETypeDetectorThis detector is able to estimate theMIMEtype of some given raw data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MIMETypeguessMIMEType(String fileName, InputStream input, MIMEType mimeTypeFromMetadata)Estimates theMIMEtype of the content of input file.
-
-
-
Method Detail
-
guessMIMEType
MIMEType guessMIMEType(String fileName, InputStream input, MIMEType mimeTypeFromMetadata)
Estimates theMIMEtype of the content of input file.- Parameters:
fileName- name of the file.input- content of the file.mimeTypeFromMetadata- mimetype declared in metadata.- Returns:
- the supposed mime type or
nullif nothing appropriate found.
-
-