Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for guessContentTypeFromName (0.2 sec)

  1. src/main/java/org/codelibs/core/net/MimeTypeUtil.java

            try {
                final String mimetype = URLConnection.guessContentTypeFromStream(is);
                if (mimetype != null) {
                    return mimetype;
                }
                return URLConnection.guessContentTypeFromName(path);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            } finally {
                CloseableUtil.close(is);
            }
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top