|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthelma.framework.repository.AbstractRepository
helma.framework.repository.ZipRepository
public final class ZipRepository
| Constructor Summary | |
|---|---|
ZipRepository(java.io.File file)
Constructs a ZipRespository using the given argument |
|
ZipRepository(java.io.File file,
Repository parent)
Constructs a ZipRepository using the given zip file as top-level repository |
|
ZipRepository(java.lang.String initArgs)
Constructs a ZipRespository using the given argument |
|
| Method Summary | |
|---|---|
void |
create()
Creates the repository if does not exist yet |
protected Resource |
createResource(java.lang.String name)
Called to create a child resource for this repository |
boolean |
equals(java.lang.Object obj)
|
boolean |
exists()
Checks wether the repository actually (or still) exists |
long |
getChecksum()
Checksum of the repository and all its content. |
protected java.util.zip.ZipFile |
getZipFile()
Returns a java.util.zip.ZipFile for this repository. |
int |
hashCode()
|
boolean |
isScriptRoot()
Checks wether the repository is to be considered a top-level repository from a scripting point of view. |
long |
lastModified()
Returns the date the repository was last modified. |
java.lang.String |
toString()
Returns the repositories full name as string representation. |
void |
update()
Called to check the repository's content. |
| Methods inherited from class helma.framework.repository.AbstractRepository |
|---|
getAllResources, getName, getParentRepository, getRepositories, getResource, getResources, getRootRepository, getShortName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ZipRepository(java.lang.String initArgs)
initArgs - absolute path to the zip filepublic ZipRepository(java.io.File file)
file - zip file
public ZipRepository(java.io.File file,
Repository parent)
file - a zip fileparent - the parent repository, or null| Method Detail |
|---|
protected java.util.zip.ZipFile getZipFile()
throws java.io.IOException
java.io.IOExceptionpublic void update()
AbstractRepository
update in class AbstractRepositoryprotected Resource createResource(java.lang.String name)
createResource in class AbstractRepositorypublic long getChecksum()
Repository
public boolean exists()
Repository
public void create()
Repository
public boolean isScriptRoot()
public long lastModified()
Repository
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
AbstractRepository
toString in class AbstractRepository{getName()}
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||