|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.deploy.shared.JarArchive
com.sun.enterprise.deployment.deploy.shared.DeploymentPlanArchive
public class DeploymentPlanArchive
This Archive offers an abstraction for jsr88 deployment plan as defined for the SJES Application Server.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
extraData, parentArchive |
| Constructor Summary | |
|---|---|
DeploymentPlanArchive()
Creates a new instance of DeploymentPlanArchive package private |
|
| Method Summary | |
|---|---|
void |
close()
Closes the current jar file |
void |
closeEntry()
Closes the output jar file entry |
void |
closeEntry(ReadableArchive sub)
Closes the output sub archive entry |
boolean |
delete()
Deletes the underlying jar file |
Enumeration |
entries()
|
Enumeration |
entries(Enumeration embeddedArchives)
|
boolean |
exists()
|
boolean |
exists(String name)
Returns the existence of the given entry name The file name must be relative to the root of the module. |
long |
getArchiveSize()
Get the size of the archive |
Collection<String> |
getDirectories()
|
InputStream |
getEntry(String name)
|
long |
getEntrySize(String name)
Returns the entry size for a given entry name or 0 if not known |
JarEntry |
getJarEntry(String name)
|
Manifest |
getManifest()
|
ReadableArchive |
getSubArchive(String name)
|
URI |
getURI()
Returns the path used to create or open the underlying archive |
void |
open(URI uri)
Open an existing DeploymentPlan archive and return a abstraction for reading from it. |
boolean |
renameTo(String name)
rename the underlying archive |
| Methods inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
entries, getExtraData, getName, getParentArchive, isDirectory, removeExtraData, setExtraData, setParentArchive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.api.deployment.archive.ReadableArchive |
|---|
getExtraData, getParentArchive, removeExtraData, setExtraData, setParentArchive |
| Methods inherited from interface org.glassfish.api.deployment.archive.Archive |
|---|
entries, getName, isDirectory |
| Constructor Detail |
|---|
public DeploymentPlanArchive()
| Method Detail |
|---|
public void open(URI uri)
throws IOException
open in interface ReadableArchiveuri - the path to the archive
IOException
public long getArchiveSize()
throws NullPointerException,
SecurityException
getArchiveSize in interface ArchiveNullPointerException
SecurityException
public void close()
throws IOException
close in interface ArchiveIOException
public void closeEntry()
throws IOException
IOException
public void closeEntry(ReadableArchive sub)
throws IOException
IOExceptionpublic boolean delete()
delete in interface ReadableArchivepublic JarEntry getJarEntry(String name)
getJarEntry in class JarArchive
public Collection<String> getDirectories()
throws IOException
getDirectories in interface ArchiveIOExceptionpublic Enumeration entries()
entries in interface Archivepublic Enumeration entries(Enumeration embeddedArchives)
public boolean exists()
exists in interface ReadableArchive
public ReadableArchive getSubArchive(String name)
throws IOException
getSubArchive in interface ReadableArchiveIOException
public boolean exists(String name)
throws IOException
exists in interface ReadableArchiveexists in class JarArchivename - the file name relative to the root of the module. * @return the existence the given entry name.
IOException
public InputStream getEntry(String name)
throws IOException
getEntry in interface ReadableArchiveIOExceptionpublic long getEntrySize(String name)
getEntrySize in interface ReadableArchivename - the entry name
public Manifest getManifest()
throws IOException
getManifest in interface ArchiveIOExceptionpublic URI getURI()
getURI in interface Archivepublic boolean renameTo(String name)
renameTo in interface ReadableArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||