com.objectspace.voyager.loader
Class ArchiveResourceLoader
java.lang.Object
|
+--com.objectspace.voyager.loader.ArchiveResourceLoader
- public class ArchiveResourceLoader
- extends java.lang.Object
- implements IResourceLoader, java.io.Serializable
ArchiveResourceLoader implements the IResourceLoader interface. Contruct with and
URL to an archive (jar or zip) file. Was intended to be used for object mobility.
If the archive file itself is requested, it will be returned as a stream, otherwise
the archive will be searched for the resource.
No resources are cached, since class bytes should only be retrieved once in a normal usecase.
Use a CachedArchiveResourceLoader if the object was routed to an applet and its bytes may be retrieved
often by many browsers.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ArchiveResourceLoader
public ArchiveResourceLoader(java.net.URL archive)
throws java.io.IOException
isResourceAvailable
public boolean isResourceAvailable()
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String name)
- Specified by:
- getResourceAsStream in interface IResourceLoader
equals
public boolean equals(java.lang.Object object)
- Overrides:
- equals in class java.lang.Object
getSigners
public java.lang.Object[] getSigners()
- Always returns null.
- Specified by:
- getSigners in interface IResourceLoader
(c) Copyright 1997-1999 ObjectSpace, Inc.
14850 Quorum Drive, Suite 500
Dallas, Texas 75240