- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for MimeTypeUtil (0.15 seconds)
-
src/main/java/org/codelibs/core/net/MimeTypeUtil.java
import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.io.ResourceUtil; /** * Utility class for MIME types. * * @author shot */ public abstract class MimeTypeUtil { /** * Do not instantiate. */ protected MimeTypeUtil() { } /** * Guesses the content type. * * @param path * The path. Must not be {@literal null} or an empty string.Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 1.9K bytes - Click Count (0) -
src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java
final String contentType = MimeTypeUtil.guessContentType(path); assertEquals("text/html", contentType); } /** * @throws Exception */ @Test public void testGetFromStream_gif() throws Exception { final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/ccc.gif"; final String contentType = MimeTypeUtil.guessContentType(path);
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.7K bytes - Click Count (0)