|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.ejtools.archive.JarEntry
|
+--org.ejtools.archive.JarArchive
Implementation for a Jar based archive.
| Constructor Summary | |
JarArchive(java.lang.String uri)
Constructor for the JarArchive object |
|
| Method Summary | |
void |
accept(Reader visitor)
Visitor Pattern method to accept a Reader visitor |
void |
accept(Writer visitor)
Visitor Pattern method to accept a Writer visitor |
void |
addEntry(Entry entry)
Adds an entry to this archive |
void |
addTo(Archive archive)
Adds a feature to the To attribute of the JarArchive object |
java.util.Enumeration |
getEntries()
Returns an enumeration of entries contained in this archive |
Entry |
getEntry(java.lang.String uri)
Returns the archive entry designated by this URI |
Entry |
getManifest()
Returns the manifest entry of this archive |
Archive |
getParent()
Return the parent archive of this archive |
boolean |
isArchive()
Always returns true as it is an archive |
boolean |
isNested()
Returns whether or not this archive is nested in an other archive |
java.util.Iterator |
iterator()
Return an Iterator of the entries contained in this archive |
void |
removeEntry(Entry entry)
Removes an entry from this archive |
void |
removeEntry(java.lang.String uri)
Removes an entry from this archive |
| Methods inherited from class org.ejtools.archive.JarEntry |
getContent, getURI, setContent, setURI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ejtools.archive.Entry |
getContent, getURI, setContent, setURI |
| Constructor Detail |
public JarArchive(java.lang.String uri)
uri - The URI of the archive| Method Detail |
public void accept(Writer visitor)
accept in interface Entryaccept in class JarEntryvisitor - The writer visitorpublic void accept(Reader visitor)
accept in interface Entryaccept in class JarEntryvisitor - The reader visitorpublic void addEntry(Entry entry)
addEntry in interface Archiveentry - The archive entry to be addedpublic void addTo(Archive archive)
addTo in interface EntryaddTo in class JarEntryarchive - The feature to be added to the To attributepublic java.util.Enumeration getEntries()
getEntries in interface Archivepublic Entry getEntry(java.lang.String uri)
getEntry in interface Archiveuri - The URI of the entry
public Entry getManifest()
getManifest in interface Archivepublic Archive getParent()
getParent in interface Archivepublic boolean isArchive()
isArchive in interface EntryisArchive in class JarEntrypublic boolean isNested()
isNested in interface Archivepublic java.util.Iterator iterator()
iterator in interface Archivepublic void removeEntry(java.lang.String uri)
removeEntry in interface Archiveuri - The archive entry to be removedpublic void removeEntry(Entry entry)
removeEntry in interface Archiveentry - The archive entry to be removed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||