Class Resource
java.lang.Object
org.apache.commons.discovery.Resource
- Direct Known Subclasses:
ResourceClass
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResource(String resourceName, URL resource, ClassLoader loader) Create a newResourceinstance. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of loader.getName()Get the value of resourceName.Get the value of URL.Get the value of URL.static Resource[]toArray(ResourceIterator iterator) Returns an array containing all of the elements in thisResourceIteratorin proper sequence.toString()
-
Field Details
-
name
-
resource
-
loader
-
-
Constructor Details
-
Resource
Create a newResourceinstance.- Parameters:
resourceName- The resource name has to be locatedresource- The resource URL has to be locatedloader- The class loader used to locate the given resource
-
-
Method Details
-
getName
-
getResource
-
getResourceAsStream
-
getClassLoader
-
toString
-
toArray
Returns an array containing all of the elements in thisResourceIteratorin proper sequence.- Parameters:
iterator- TheResourceIteratorcontaining the- Returns:
- An array containing the elements of the given
ResourceIterator
-