|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.util.archive.impl.AbsArchiveImpl
org.ow2.util.archive.impl.MemoryArchive
public class MemoryArchive
Emulate an archive in memory.
| Constructor Summary | |
|---|---|
MemoryArchive()
Construct an archive in memory. |
|
MemoryArchive(ClassLoader classLoader,
List<String> classNames)
Construct an archive in memory. |
|
| Method Summary | |
|---|---|
void |
addClassResource(ClassLoader classLoader,
List<String> classNames)
|
void |
addResource(String resourceName,
URL url)
|
boolean |
close()
Close the archive. |
Iterator<String> |
getEntries()
|
String |
getName()
|
URL |
getResource(String resourceName)
|
Iterator<URL> |
getResources()
|
Iterator<URL> |
getResources(String resourceName)
|
URL |
getURL()
The memory archive has no url. |
| Methods inherited from class org.ow2.util.archive.impl.AbsArchiveImpl |
|---|
getMetadata, readManifest, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ow2.util.archive.api.IArchive |
|---|
getMetadata |
| Constructor Detail |
|---|
public MemoryArchive()
public MemoryArchive(ClassLoader classLoader,
List<String> classNames)
classLoader - this classloader is use to load class by their nameclassNames - the name of classes in archive| Method Detail |
|---|
public boolean close()
close in interface IArchivepublic String getName()
getName in interface IArchivepublic URL getResource(String resourceName)
getResource in interface IArchiveresourceName - the resource name
public Iterator<URL> getResources()
getResources in interface IArchivepublic Iterator<URL> getResources(String resourceName)
getResources in interface IArchiveresourceName - the resource name
public URL getURL()
getURL in interface IArchive
public void addResource(String resourceName,
URL url)
resourceName - the resource nameurl - the url
public void addClassResource(ClassLoader classLoader,
List<String> classNames)
classLoader - this classloader is use to load class by their nameclassNames - the name of classes in archivepublic Iterator<String> getEntries()
getEntries in interface IArchive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||