/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* VersionHelper was used by JNDI to accommodate differences between
* JDK 1.1.x and the Java 2 platform. As this is no longer necessary
* since JNDI's inclusion in the platform, this class currently
* serves as a set of utilities for performing system-level things,
* such as class-loading and reading system properties.
*
* @author Rosanna Lee
* @author Scott Seligman
*/
public abstract class VersionHelper {
// The following shouldn't create a runtime dependence on ldap package.
};
static {
helper = new VersionHelper12();
}
return helper;
}
throws ClassNotFoundException;
throws ClassNotFoundException;
/*
* Returns a JNDI property from the system properties. Returns
* null if the property is not set, or if there is no permission
* to read it.
*/
/*
* Reads each property in PROPS from the system properties, and
* returns their values -- in order -- in an array. For each
* unset property, the corresponding array element is set to null.
* Returns null if there is no permission to call System.getProperties().
*/
/*
* Returns the resource of a given name associated with a particular
* class (never null), or null if none can be found.
*/
/*
* Returns an input stream for a file in <java.home>/lib,
* or null if it cannot be located or opened.
*
* @param filename The file name, sans directory.
*/
/*
* Returns an enumeration (never null) of InputStreams of the
* resources of a given name associated with a particular class
* loader. Null represents the bootstrap class loader in some
* Java implementations.
*/
throws IOException;
/*
* Returns the context class loader associated with the current thread.
* Null indicates the bootstrap class loader in some Java implementations.
*
* @throws SecurityException if the class loader is not accessible.
*/
throws MalformedURLException {
// Parse codebase into separate URLs
while (parser.hasMoreTokens()) {
}
}
}
return urlArray;
}
}