@Service(name="jar") @PerLookup public class OutputJarArchive extends JarArchive implements org.glassfish.api.deployment.archive.WritableArchive
| Modifier and Type | Field and Description |
|---|---|
protected ZipOutputStream |
jos |
archiveMetaData, extraData, parentArchive| Constructor and Description |
|---|
OutputJarArchive() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close the abstract archive
|
void |
closeEntry()
closes the current entry
|
void |
closeEntry(org.glassfish.api.deployment.archive.WritableArchive subArchive)
Close a previously returned sub archive
|
void |
create(URI path)
creates a new abstract archive with the given path
|
org.glassfish.api.deployment.archive.WritableArchive |
createSubArchive(String name) |
Enumeration |
entries() |
Enumeration |
entries(Enumeration embeddedArchives) |
long |
getArchiveSize()
Get the size of the archive
|
Collection<String> |
getDirectories() |
protected JarEntry |
getJarEntry(String entryName) |
Manifest |
getManifest() |
URI |
getURI()
Returns the path used to create or open the underlyong archive
|
OutputStream |
putNextEntry(String name) |
addArchiveMetaData, entries, exists, getArchiveMetaData, getExtraData, getName, getParentArchive, isDirectory, removeArchiveMetaData, removeExtraData, setExtraData, setParentArchiveprotected ZipOutputStream jos
public 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.ArchiveIOExceptionprotected JarEntry getJarEntry(String entryName)
getJarEntry in class JarArchivepublic void create(URI path) throws IOException
create in interface org.glassfish.api.deployment.archive.WritableArchivepath - the path to create the archiveIOExceptionpublic Enumeration entries()
entries in interface org.glassfish.api.deployment.archive.Archivepublic Collection<String> getDirectories() throws IOException
getDirectories in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic Enumeration entries(Enumeration embeddedArchives)
public Manifest getManifest() throws IOException
getManifest in interface org.glassfish.api.deployment.archive.ArchiveIOExceptionpublic URI getURI()
getURI in interface org.glassfish.api.deployment.archive.Archivepublic org.glassfish.api.deployment.archive.WritableArchive createSubArchive(String name) throws IOException
createSubArchive in interface org.glassfish.api.deployment.archive.WritableArchiveIOExceptionpublic void closeEntry(org.glassfish.api.deployment.archive.WritableArchive subArchive)
throws IOException
closeEntry in interface org.glassfish.api.deployment.archive.WritableArchivesubArchive - output stream to closeIOExceptionpublic OutputStream putNextEntry(String name) throws IOException
putNextEntry in interface org.glassfish.api.deployment.archive.WritableArchivename - the entry nameIOExceptionpublic void closeEntry()
throws IOException
closeEntry in interface org.glassfish.api.deployment.archive.WritableArchiveIOExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.