av.util
Class Resource
java.lang.Object
av.util.Resource
public abstract class Resource
- extends Object
A utility class to work with resources loadable from
ClassLoaders.
- Author:
- compl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCurrentClassLoader
public static ClassLoader getCurrentClassLoader()
loadClass
public static Class<?> loadClass(String name)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getResource
public static URL getResource(String name)
getResourceAsStream
public static InputStream getResourceAsStream(String name)
findAllResources
public static Collection<URL> findAllResources(String name)
getLocalResourceAsStream
public static InputStream getLocalResourceAsStream(String name)
- Load classpath resource only from local file systems. If called from
applet code, attempts will be first made to only consult cached jars. If
success this will greatly improve performance by avoiding consulting the
applet code base every time.
Currently only SUN plugin is supported.
Copyright© 2006 Ableverse Platform. All rights reserved.