public abstract class VersionHelper extends Object
VersionHelper was used by JNDI to accommodate differences between
JDK 1.1.x and the Java 2 platform. Since this is no longer necessary
due to JNDI's presence in the Java 2 Platform v1.3 and higher, this
class currently serves as a set of utilities for performing
system-level things, such as class-loading and reading system properties.
// Parse codebase into separate URLs
StringTokenizer parser = new StringTokenizer(codebase);
Vector vec = new Vector(10);
while (parser.hasMoreTokens()) {
vec.addElement(parser.nextToken());
}
String[] url = new String[vec.size()];
for (int i = 0; i < url.length; i++) {
url[i] = (String)vec.elementAt(i);
}
URL[] urlArray = new URL[url.length];
for (int i = 0; i < urlArray.length; i++) {
urlArray[i] = new URL(url[i]);
}
return urlArray;