public class DeploymentPlanArchive extends JarArchive implements org.glassfish.api.deployment.archive.ReadableArchive
archiveMetaData, extraData, parentArchive| Constructor and Description |
|---|
DeploymentPlanArchive()
Creates a new instance of DeploymentPlanArchive
package private
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the current jar file
|
void |
closeEntry()
Closes the output jar file entry
|
void |
closeEntry(org.glassfish.api.deployment.archive.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() |
org.glassfish.api.deployment.archive.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
|
addArchiveMetaData, entries, getArchiveMetaData, getExtraData, getName, getParentArchive, isDirectory, removeArchiveMetaData, removeExtraData, setExtraData, setParentArchiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DeploymentPlanArchive()
public void open(URI uri) throws IOException
open in interface org.glassfish.api.deployment.archive.ReadableArchiveuri - the path to the archiveIOExceptionpublic long getArchiveSize()
throws NullPointerException,
SecurityException
getArchiveSize in interface org.glassfish.api.deployment.archive.ArchiveNullPointerExceptionSecurityExceptionpublic void close()
throws IOException
close in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic void closeEntry()
throws IOException
IOExceptionpublic void closeEntry(org.glassfish.api.deployment.archive.ReadableArchive sub)
throws IOException
IOExceptionpublic boolean delete()
delete in interface org.glassfish.api.deployment.archive.ReadableArchivepublic JarEntry getJarEntry(String name)
getJarEntry in class JarArchivepublic Collection<String> getDirectories() throws IOException
getDirectories in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic Enumeration entries()
entries in interface org.glassfish.api.deployment.archive.Archivepublic Enumeration entries(Enumeration embeddedArchives)
public boolean exists()
exists in interface org.glassfish.api.deployment.archive.ReadableArchivepublic org.glassfish.api.deployment.archive.ReadableArchive getSubArchive(String name) throws IOException
getSubArchive in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic boolean exists(String name) throws IOException
exists in interface org.glassfish.api.deployment.archive.ReadableArchiveexists in class JarArchivename - the file name relative to the root of the module. * @return the existence the given entry name.IOExceptionpublic InputStream getEntry(String name) throws IOException
getEntry in interface org.glassfish.api.deployment.archive.ReadableArchiveIOExceptionpublic long getEntrySize(String name)
getEntrySize in interface org.glassfish.api.deployment.archive.ReadableArchivename - the entry namepublic Manifest getManifest() throws IOException
getManifest in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic URI getURI()
getURI in interface org.glassfish.api.deployment.archive.Archivepublic boolean renameTo(String name)
renameTo in interface org.glassfish.api.deployment.archive.ReadableArchiveCopyright © 2013. All Rights Reserved.