|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.ejtools.archive.JarEntry
Implementation for a Jar based entry.
| Constructor Summary | |
JarEntry(java.lang.String uri)
Constructor for the JarEntry 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 |
addTo(Archive archive)
Adds this entry to an archive |
byte[] |
getContent()
Returns the content of this entry |
java.lang.String |
getURI()
Return the absolute URI of this entry |
boolean |
isArchive()
Always returns false as it is not an archive |
void |
setContent(byte[] content)
Sets the content of this entry |
void |
setURI(java.lang.String uri)
Sets the URI of this entry |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JarEntry(java.lang.String uri)
uri - The URI of the entry| Method Detail |
public void accept(Writer visitor)
accept in interface Entryvisitor - The writer visitorpublic void accept(Reader visitor)
accept in interface Entryvisitor - The reader visitorpublic void addTo(Archive archive)
addTo in interface Entryarchive - The archive to be added topublic byte[] getContent()
getContent in interface Entrypublic java.lang.String getURI()
getURI in interface Entrypublic boolean isArchive()
isArchive in interface Entrypublic void setContent(byte[] content)
setContent in interface Entrycontent - The new contentpublic void setURI(java.lang.String uri)
setURI in interface Entryuri - The new URI
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||