|
||||||||||
| 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.OutputJarArchive
@Service(name="jar") @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public class OutputJarArchive
Provides an implementation of the Archive that maps to a Jar file @see java.util.jar.JarFile
| Field Summary | |
|---|---|
protected java.util.zip.ZipOutputStream |
jos
|
| Fields inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
extraData, parentArchive |
| Constructor Summary | |
|---|---|
OutputJarArchive()
|
|
| Method Summary | |
|---|---|
void |
close()
close the abstract archive |
void |
closeEntry()
closes the current entry |
void |
closeEntry(WritableArchive subArchive)
Close a previously returned sub archive |
void |
create(java.net.URI path)
creates a new abstract archive with the given path |
WritableArchive |
createSubArchive(java.lang.String name)
|
java.util.Enumeration |
entries()
|
java.util.Enumeration |
entries(java.util.Enumeration embeddedArchives)
|
long |
getArchiveSize()
Get the size of the archive |
java.util.Collection<java.lang.String> |
getDirectories()
|
protected java.util.jar.JarEntry |
getJarEntry(java.lang.String entryName)
|
java.util.jar.Manifest |
getManifest()
|
java.net.URI |
getURI()
Returns the path used to create or open the underlyong archive |
java.io.OutputStream |
putNextEntry(java.lang.String name)
|
| Methods inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
entries, exists, 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.Archive |
|---|
entries, getName, isDirectory |
| Field Detail |
|---|
protected java.util.zip.ZipOutputStream jos
| Constructor Detail |
|---|
public OutputJarArchive()
| Method Detail |
|---|
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.IOExceptionprotected java.util.jar.JarEntry getJarEntry(java.lang.String entryName)
getJarEntry in class JarArchive
public void create(java.net.URI path)
throws java.io.IOException
create in interface WritableArchivepath - the path to create the archive
java.io.IOExceptionpublic java.util.Enumeration entries()
entries in interface Archive
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
getDirectories in interface Archivejava.io.IOExceptionpublic java.util.Enumeration entries(java.util.Enumeration embeddedArchives)
public java.util.jar.Manifest getManifest()
throws java.io.IOException
getManifest in interface Archivejava.io.IOExceptionpublic java.net.URI getURI()
getURI in interface Archive
public WritableArchive createSubArchive(java.lang.String name)
throws java.io.IOException
createSubArchive in interface WritableArchivejava.io.IOException
public void closeEntry(WritableArchive subArchive)
throws java.io.IOException
closeEntry in interface WritableArchivesubArchive - output stream to close
java.io.IOException
public java.io.OutputStream putNextEntry(java.lang.String name)
throws java.io.IOException
putNextEntry in interface WritableArchivename - the entry name
java.io.IOException
public void closeEntry()
throws java.io.IOException
closeEntry in interface WritableArchivejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||