|
||||||||||
| 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 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(URI path)
creates a new abstract archive with the given path |
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)
|
| 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 ZipOutputStream jos
| Constructor Detail |
|---|
public OutputJarArchive()
| Method Detail |
|---|
public long getArchiveSize()
throws NullPointerException,
SecurityException
getArchiveSize in interface ArchiveNullPointerException
SecurityException
public void close()
throws IOException
close in interface ArchiveIOExceptionprotected JarEntry getJarEntry(String entryName)
getJarEntry in class JarArchive
public void create(URI path)
throws IOException
create in interface WritableArchivepath - the path to create the archive
IOExceptionpublic Enumeration entries()
entries in interface Archive
public Collection<String> getDirectories()
throws IOException
getDirectories in interface ArchiveIOExceptionpublic Enumeration entries(Enumeration embeddedArchives)
public Manifest getManifest()
throws IOException
getManifest in interface ArchiveIOExceptionpublic URI getURI()
getURI in interface Archive
public WritableArchive createSubArchive(String name)
throws IOException
createSubArchive in interface WritableArchiveIOException
public void closeEntry(WritableArchive subArchive)
throws IOException
closeEntry in interface WritableArchivesubArchive - output stream to close
IOException
public OutputStream putNextEntry(String name)
throws IOException
putNextEntry in interface WritableArchivename - the entry name
IOException
public void closeEntry()
throws IOException
closeEntry in interface WritableArchiveIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||