|
|||||||||||
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 archiveMethod Detail |
public void accept(Writer visitor)
accept
in interface Entry
accept
in class JarEntry
visitor
- The writer visitorpublic void accept(Reader visitor)
accept
in interface Entry
accept
in class JarEntry
visitor
- The reader visitorpublic void addEntry(Entry entry)
addEntry
in interface Archive
entry
- The archive entry to be addedpublic void addTo(Archive archive)
addTo
in interface Entry
addTo
in class JarEntry
archive
- The feature to be added to the To attributepublic java.util.Enumeration getEntries()
getEntries
in interface Archive
public Entry getEntry(java.lang.String uri)
getEntry
in interface Archive
uri
- The URI of the entry
public Entry getManifest()
getManifest
in interface Archive
public Archive getParent()
getParent
in interface Archive
public boolean isArchive()
isArchive
in interface Entry
isArchive
in class JarEntry
public boolean isNested()
isNested
in interface Archive
public java.util.Iterator iterator()
iterator
in interface Archive
public void removeEntry(java.lang.String uri)
removeEntry
in interface Archive
uri
- The archive entry to be removedpublic void removeEntry(Entry entry)
removeEntry
in interface Archive
entry
- The archive entry to be removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |