|
||||||||||
| 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 |
java.util.Enumeration |
entries()
|
java.util.Enumeration |
entries(java.util.Enumeration embeddedArchives)
|
boolean |
exists()
|
boolean |
exists(java.lang.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 |
java.util.Collection<java.lang.String> |
getDirectories()
|
java.io.InputStream |
getEntry(java.lang.String name)
|
long |
getEntrySize(java.lang.String name)
Returns the entry size for a given entry name or 0 if not known |
java.util.jar.JarEntry |
getJarEntry(java.lang.String name)
|
java.util.jar.Manifest |
getManifest()
|
ReadableArchive |
getSubArchive(java.lang.String name)
|
java.net.URI |
getURI()
Returns the path used to create or open the underlying archive |
void |
open(java.net.URI uri)
Open an existing DeploymentPlan archive and return a abstraction for reading from it. |
boolean |
renameTo(java.lang.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(java.net.URI uri)
throws java.io.IOException
open in interface ReadableArchiveuri - the path to the archive
java.io.IOException
public long getArchiveSize()
throws java.lang.NullPointerException,
java.lang.SecurityException
getArchiveSize in interface Archivejava.lang.NullPointerException
java.lang.SecurityException
public void close()
throws java.io.IOException
close in interface Archivejava.io.IOException
public void closeEntry()
throws java.io.IOException
java.io.IOException
public void closeEntry(ReadableArchive sub)
throws java.io.IOException
java.io.IOExceptionpublic boolean delete()
delete in interface ReadableArchivepublic java.util.jar.JarEntry getJarEntry(java.lang.String name)
getJarEntry in class JarArchive
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
getDirectories in interface Archivejava.io.IOExceptionpublic java.util.Enumeration entries()
entries in interface Archivepublic java.util.Enumeration entries(java.util.Enumeration embeddedArchives)
public boolean exists()
exists in interface ReadableArchive
public ReadableArchive getSubArchive(java.lang.String name)
throws java.io.IOException
getSubArchive in interface ReadableArchivejava.io.IOException
public boolean exists(java.lang.String name)
throws java.io.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.
java.io.IOException
public java.io.InputStream getEntry(java.lang.String name)
throws java.io.IOException
getEntry in interface ReadableArchivejava.io.IOExceptionpublic long getEntrySize(java.lang.String name)
getEntrySize in interface ReadableArchivename - the entry name
public java.util.jar.Manifest getManifest()
throws java.io.IOException
getManifest in interface Archivejava.io.IOExceptionpublic java.net.URI getURI()
getURI in interface Archivepublic boolean renameTo(java.lang.String name)
renameTo in interface ReadableArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||