Interface MediaTypePredictor
- All Known Implementing Classes:
DefaultMediaTypePredictor
public interface MediaTypePredictor
An interface which allows developers implement their own media type predictor.
- Author:
- Imran M Yousuf (imran at smartitengineering.com), Paul Sandoz, Michal Gajdos
-
Method Summary
Modifier and TypeMethodDescriptiongetMediaTypeFromFile
(File file) Get the media type from a file name.getMediaTypeFromFileName
(String fileName) Get the media type from a file name.
-
Method Details
-
getMediaTypeFromFile
Get the media type from a file name. -
getMediaTypeFromFileName
Get the media type from a file name. If the file name extension is not recognised it will returnMediaType
for "*\/*", it will also return the same if the file isnull
.
-