public interface MediaTypePredictor
| Modifier and Type | Method and Description |
|---|---|
MediaType |
getMediaTypeFromFile(java.io.File file)
Get the media type from a file name.
|
MediaType |
getMediaTypeFromFileName(java.lang.String fileName)
Get the media type from a file name.
|
MediaType getMediaTypeFromFile(java.io.File file)
file - The file from which to get the MediaTypeMediaType for the give file; null - if file
is null; "application/octet-stream" if extension not recognized.DefaultMediaTypePredictor.CommonMediaTypes.getMediaTypeFromFileName(java.lang.String)Copyright © 2016 Oracle Corporation. All Rights Reserved.