public class DeploymentPlanArchive extends JarArchive implements 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(ReadableArchive sub)
Closes the output sub archive entry
|
boolean |
delete()
Deletes the underlying jar file
|
Enumeration |
entries()
Returns an enumeration of the module file 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()
Returns the enumeration of first level directories in this
archive
|
InputStream |
getEntry(String name)
Returns the InputStream for the given entry name
The file name must be relative to the root of the module.
|
long |
getEntrySize(String name)
Returns the entry size for a given entry name or 0 if not known
|
JarEntry |
getJarEntry(String name) |
Manifest |
getManifest()
Returns the manifest information for this archive
|
ReadableArchive |
getSubArchive(String name)
Returns an instance of this archive abstraction for an embedded
archive within this archive.
|
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, waitaddArchiveMetaData, getArchiveMetaData, getExtraData, getParentArchive, removeArchiveMetaData, removeExtraData, setExtraData, setParentArchiveentries, getName, isDirectorypublic DeploymentPlanArchive()
public void open(URI uri) throws IOException
open in interface ReadableArchiveuri - the path to the archiveIOExceptionpublic long getArchiveSize()
throws NullPointerException,
SecurityException
getArchiveSize in interface ArchiveNullPointerExceptionSecurityExceptionpublic void close()
throws IOException
close in interface ArchiveIOExceptionpublic void closeEntry()
throws IOException
IOExceptionpublic void closeEntry(ReadableArchive sub) throws IOException
IOExceptionpublic boolean delete()
delete in interface ReadableArchivepublic JarEntry getJarEntry(String name)
getJarEntry in class JarArchivepublic Collection<String> getDirectories() throws IOException
ArchivegetDirectories in interface ArchiveIOExceptionpublic Enumeration entries()
Archivepublic Enumeration entries(Enumeration embeddedArchives)
public boolean exists()
exists in interface ReadableArchivepublic ReadableArchive getSubArchive(String name) throws IOException
ReadableArchivegetSubArchive in interface ReadableArchivename - is the entry name relative to the root for the archiveIOExceptionpublic 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.IOExceptionpublic InputStream getEntry(String name) throws IOException
ReadableArchivegetEntry in interface ReadableArchivename - the file name relative to the root of the module.IOExceptionpublic long getEntrySize(String name)
getEntrySize in interface ReadableArchivename - the entry namepublic Manifest getManifest() throws IOException
ArchivegetManifest in interface ArchiveIOExceptionpublic URI getURI()
public boolean renameTo(String name)
renameTo in interface ReadableArchivename - the archive nameCopyright © 2017. All rights reserved.