|
|||||||||
| 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.DirectoryArchiveImpl
public class DirectoryArchiveImpl
Creates wrapper around directory.
| Constructor Summary | |
|---|---|
protected |
DirectoryArchiveImpl(File directory)
Creates new instance of an IArchive for a directory. |
| Method Summary | |
|---|---|
boolean |
close()
Close the underlying Resource. |
boolean |
equals(Object o)
Is that the given object is equals to our instance. |
Iterator<String> |
getEntries()
|
IArchiveMetadata |
getMetadata()
|
String |
getName()
|
URL |
getResource(String resourceName)
|
Iterator<URL> |
getResources()
|
Iterator<URL> |
getResources(String resourceName)
|
URL |
getURL()
|
int |
hashCode()
Gets hashcode for this object. |
protected void |
initMetadata()
Init metadata by reading the Manifest file. |
String |
toString()
|
| Methods inherited from class org.ow2.util.archive.impl.AbsArchiveImpl |
|---|
readManifest |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DirectoryArchiveImpl(File directory)
directory - the given directory.| Method Detail |
|---|
public String getName()
getName in interface IArchivepublic IArchiveMetadata getMetadata()
getMetadata in interface IArchivegetMetadata in class AbsArchiveImpl
protected void initMetadata()
throws ArchiveException
ArchiveException - if metadata are not initializedpublic boolean close()
close in interface IArchivetrue if the close was
succesful, false otherwise.
public URL getResource(String resourceName)
throws ArchiveException
getResource in interface IArchiveresourceName - The resource name to be looked up.
ArchiveException - if method fails.
public Iterator<URL> getResources()
throws ArchiveException
getResources in interface IArchiveArchiveException - if method fails.
public Iterator<URL> getResources(String resourceName)
throws ArchiveException
getResources in interface IArchiveresourceName - The resource name to be looked up.
ArchiveException - if method fails.
public URL getURL()
throws ArchiveException
getURL in interface IArchiveArchiveException - if method fails.public boolean equals(Object o)
equals in class Objecto - the object to compare.
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class AbsArchiveImplpublic Iterator<String> getEntries()
getEntries in interface IArchive
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||