| java.lang.Object org.apache.axis2.util.Loader
Loader | public class Loader (Code) | | Loads resources (or images) from various sources.
|
getResource | public static URL getResource(String resource)(Code) | | Searches for resource in different
places. The search order is as follows:
- Search for
resource using the thread context
class loader under Java2. If that fails, search for
resource using the class loader that loaded this
class (Loader ).
- Try one last time with
ClassLoader.getSystemResource(resource) , that is is
using the system class loader in JDK 1.2 and virtual machine's
built-in class loader in JDK 1.1.
Parameters: resource - Returns URL |
getResourceAsStream | public static InputStream getResourceAsStream(String resource)(Code) | | Searches for resource in different
places. The search order is as follows:
- Search for
resource using the thread context
class loader under Java2. If that fails, search for
resource using the class loader that loaded this
class (Loader ).
- Try one last time with
ClassLoader.getSystemResourceAsStream(resource) , that is is
using the system class loader in JDK 1.2 and virtual machine's
built-in class loader in JDK 1.1.
Parameters: resource - Returns URL |
|
|