com.objectspace.voyager.loader
Class URLResourceLoader
java.lang.Object
|
+--com.objectspace.voyager.loader.URLResourceLoader
- public class URLResourceLoader
- extends java.lang.Object
- implements IResourceLoader, java.io.Serializable
URLResourceLoader loads resources from a specific URL.
- Version:
- 3.0
- See Also:
- Serialized Form
Constructor Summary |
URLResourceLoader(java.net.URL url)
Construct a URLResourceLoader to load resources from the specified URL. |
Method Summary |
boolean |
equals(java.lang.Object object)
Return true if the specified object is a URLResourceLoader with the same URL as myself. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Use my URL to return an InputStream containing the bytes for the requested resource. |
java.lang.Object[] |
getSigners()
Always returns null. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
URLResourceLoader
public URLResourceLoader(java.net.URL url)
- Construct a URLResourceLoader to load resources from the specified URL.
- Parameters:
url
- The URL to load resources from.
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String name)
- Use my URL to return an InputStream containing the bytes for the requested resource.
If the resource could not be found, return null.
- Specified by:
- getResourceAsStream in interface IResourceLoader
- Parameters:
name
- The full filename of a particular resource.
getSigners
public java.lang.Object[] getSigners()
- Always returns null.
- Specified by:
- getSigners in interface IResourceLoader
equals
public boolean equals(java.lang.Object object)
- Return true if the specified object is a URLResourceLoader with the same URL as myself.
- Parameters:
object
- The object to compare against.- Overrides:
- equals in class java.lang.Object
(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240