public void configure(MIDletClassLoaderConfig clConfig, boolean forJad) throws MalformedURLException { for (Iterator iter = clConfig.appclasspath.iterator(); iter.hasNext();) { String path = (String) iter.next(); StringTokenizer st = new StringTokenizer(path, File.pathSeparator); while (st.hasMoreTokens()) { this.addURL(new URL(IOUtils.getCanonicalFileClassLoaderURL(new File(st.nextToken())))); } } for (Iterator iter = clConfig.appclasses.iterator(); iter.hasNext();) { this.addClassURL((String) iter.next()); } int delegationType = clConfig.getDelegationType(forJad); this.delegatingToParent = (delegationType == MIDletClassLoaderConfig.DELEGATION_DELEGATING); this.findPathInParent = (delegationType == MIDletClassLoaderConfig.DELEGATION_RELAXED); }
tmp.deleteOnExit(); IOUtils.copyToFile(is, tmp); return IOUtils.getCanonicalFileClassLoaderURL(tmp); } catch (IOException e) { if (reportError) {