ResourceClasspublic class Resource
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.ClassLoader |
loader |
|
protected java.lang.String |
name |
|
protected java.net.URL |
resource |
| Constructor | Description |
|---|---|
Resource(java.lang.String resourceName,
java.net.URL resource,
java.lang.ClassLoader loader) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.ClassLoader |
getClassLoader() |
Get the value of loader.
|
java.lang.String |
getName() |
Get the value of resourceName.
|
java.net.URL |
getResource() |
Get the value of URL.
|
java.io.InputStream |
getResourceAsStream() |
Get the value of URL.
|
static Resource[] |
toArray(ResourceIterator iterator) |
|
java.lang.String |
toString() |
protected final java.lang.String name
protected final java.net.URL resource
protected final java.lang.ClassLoader loader
public Resource(java.lang.String resourceName,
java.net.URL resource,
java.lang.ClassLoader loader)
public java.lang.String getName()
public java.net.URL getResource()
public java.io.InputStream getResourceAsStream()
public java.lang.ClassLoader getClassLoader()
public java.lang.String toString()
toString in class java.lang.Objectpublic static Resource[] toArray(ResourceIterator iterator)
Copyright (c) 2002 - Apache Software Foundation