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, setParentArchive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArchiveMetaData, getArchiveMetaData, getExtraData, getParentArchive, removeArchiveMetaData, removeExtraData, setExtraData, setParentArchive
entries, getName, isDirectory
public DeploymentPlanArchive()
public void open(URI uri) throws IOException
open
in interface ReadableArchive
uri
- the path to the archiveIOException
public long getArchiveSize() throws NullPointerException, SecurityException
getArchiveSize
in interface Archive
NullPointerException
SecurityException
public void close() throws IOException
close
in interface Archive
IOException
public void closeEntry() throws IOException
IOException
public void closeEntry(ReadableArchive sub) throws IOException
IOException
public boolean delete()
delete
in interface ReadableArchive
public JarEntry getJarEntry(String name)
getJarEntry
in class JarArchive
public Collection<String> getDirectories() throws IOException
Archive
getDirectories
in interface Archive
IOException
public Enumeration entries()
Archive
public Enumeration entries(Enumeration embeddedArchives)
public boolean exists()
exists
in interface ReadableArchive
public ReadableArchive getSubArchive(String name) throws IOException
ReadableArchive
getSubArchive
in interface ReadableArchive
name
- is the entry name relative to the root for the archiveIOException
public boolean exists(String name) throws IOException
exists
in interface ReadableArchive
exists
in class JarArchive
name
- 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
ReadableArchive
getEntry
in interface ReadableArchive
name
- the file name relative to the root of the module.IOException
public long getEntrySize(String name)
getEntrySize
in interface ReadableArchive
name
- the entry namepublic Manifest getManifest() throws IOException
Archive
getManifest
in interface Archive
IOException
public URI getURI()
public boolean renameTo(String name)
renameTo
in interface ReadableArchive
name
- the archive nameCopyright © 2019. All rights reserved.