Class MimeTypeDetector
java.lang.Object
org.springframework.ai.vertexai.gemini.MimeTypeDetector
Gemini supports the following MIME types:
- image/gif
- image/png
- image/jpeg
- video/mov
- video/mpeg
- video/mp4
- video/mpg
- video/avi
- video/wmv
- video/mpegps
- video/flv
- Since:
- 0.8.1
- Author:
- Christian Tzolov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.util.MimeType
getMimeType
(File file) static org.springframework.util.MimeType
getMimeType
(String path) static org.springframework.util.MimeType
getMimeType
(URI uri) static org.springframework.util.MimeType
getMimeType
(URL url) static org.springframework.util.MimeType
getMimeType
(Path path) static org.springframework.util.MimeType
getMimeType
(org.springframework.core.io.Resource resource)
-
Constructor Details
-
MimeTypeDetector
public MimeTypeDetector()
-
-
Method Details
-
getMimeType
-
getMimeType
-
getMimeType
-
getMimeType
-
getMimeType
public static org.springframework.util.MimeType getMimeType(org.springframework.core.io.Resource resource) -
getMimeType
-