Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MimeTypeUtil (0.11 sec)

  1. 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.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. 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);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top