jodd-core/src/main/java/jodd/net/MimeTypes.java
public static String getMimeType(final String ext) {
		String mimeType = lookupMimeType(ext);
		if (mimeType == null) {
			mimeType = MIME_APPLICATION_OCTET_STREAM;
		}
		return mimeType;
	}
public static String getMimeType(final String ext) {
		String mimeType = lookupMimeType(ext);
		if (mimeType == null) {
			mimeType = MIME_APPLICATION_OCTET_STREAM;
		}
		return mimeType;
	}
public static String getMimeType ( final String ext ) { String mimeType = lookupMimeType ( ext ) ; if ( mimeType == null ) { mimeType = MIME_APPLICATION_OCTET_STREAM ; } return mimeType ; }
Returns the corresponding MIME type to the given extension.
If no MIME type was found it returns <code>application/octet-stream</code> type.
Returns the corresponding MIME type to the given extension . If no MIME type was found it returns <code > application / octet - stream< / code > type .