public URLClassPath(URL[] urls,URLStreamHandlerFactory factory){
  for (int i=0; i < urls.length; i++) {
    path.add(urls[i]);
  }
  push(urls);
  if (factory != null) {
    jarHandler=factory.createURLStreamHandler("jar");
  }
}

public URLClassPath ( URL [ ] urls , URLStreamHandlerFactory factory ) { for ( int i = 0 ; i < urls . length ; i ++ ) { path . add ( urls [ i ] ) ; } push ( urls ) ; if ( factory != null ) { jarHandler = factory . createURLStreamHandler ( "jar" ) ; } }
creates a new urlclasspath for the given urls . the urls will be searched in the order specified for classes and resources . a url ending with a ' / ' is assumed to refer to a directory . otherwise , the url is assumed to refer to a jar file .
