⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jmfutility.java

📁 FMJ(freedom media for java)是java视频开发的新选择
💻 JAVA
字号:
package net.sf.fmj.utility;import java.lang.reflect.Method;/** * Helper class to do certain JMF-specific things. * Reflection is used to avoid a dependency on JMF. * @author Ken Larson * */public class JmfUtility{	/** Enables JMF logging.  Has no effect for FMJ. */	public static boolean enableLogging()	{		try		{			// com.sun.media.util.Registry.set("allowLogging", true);						final Class clazz = Class.forName("com.sun.media.util.Registry");			final Method m = clazz.getMethod("set", String.class, Object.class);			m.invoke(null, "allowLogging", true);						return true;		}		catch (Exception e)		{			return false;		}	}	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -