JAVA 笔记 ClassLoader.getResourceAsStream() 与 Class.getResourceAsStream()的区别
public void useCamera(){ StartCamera s = this.findClassLoader().loadClass("StartCamera"); s.start();}private ClassLoader findClassLoader(){ ClassLoader loader = Thread.currentThread().getContextClassLoader(); if(loader==null){ loader = ClassLoader.getSystemClassLoader(); } return loader;}
?
?