Class OutputJarArchive
java.lang.Object
com.sun.enterprise.deployment.deploy.shared.JarArchive
com.sun.enterprise.deployment.deploy.shared.OutputJarArchive
- All Implemented Interfaces:
AutoCloseable,org.glassfish.api.deployment.archive.Archive,org.glassfish.api.deployment.archive.WritableArchive
@Service(name="jar")
@PerLookup
public class OutputJarArchive
extends JarArchive
implements org.glassfish.api.deployment.archive.WritableArchive
Provides an implementation of the Archive that maps to
a Jar file @see java.util.jar.JarFile
- Author:
- Jerome Dochez
-
Field Summary
Fields inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive
archiveMetaData, extraData, parentArchive -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close the abstract archivevoidorg.glassfish.api.deployment.archive.WritableArchivecreateSubArchive(String name) entries()longGet the size of the archiveprotected JarEntrygetJarEntry(String entryName) getURI()org.glassfish.api.deployment.archive.WritableArchiveEntryputNextEntry(String name) Methods inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive
addArchiveMetaData, entries, exists, getArchiveMetaData, getExtraData, getName, getParentArchive, isDirectory, removeArchiveMetaData, removeExtraData, setExtraData, setParentArchive, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.api.deployment.archive.Archive
entries, getName, isDirectory
-
Constructor Details
-
OutputJarArchive
public OutputJarArchive()
-
-
Method Details
-
getArchiveSize
Get the size of the archive- Specified by:
getArchiveSizein interfaceorg.glassfish.api.deployment.archive.Archive- Returns:
- -1 because this is getting created
- Throws:
NullPointerExceptionSecurityException
-
close
close the abstract archive- Specified by:
closein interfaceorg.glassfish.api.deployment.archive.Archive- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getJarEntry
- Specified by:
getJarEntryin classJarArchive
-
create
- Specified by:
createin interfaceorg.glassfish.api.deployment.archive.WritableArchive- Throws:
IOException
-
entries
- Specified by:
entriesin interfaceorg.glassfish.api.deployment.archive.Archive
-
getDirectories
- Specified by:
getDirectoriesin interfaceorg.glassfish.api.deployment.archive.Archive- Throws:
IOException
-
getManifest
- Specified by:
getManifestin interfaceorg.glassfish.api.deployment.archive.Archive- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.glassfish.api.deployment.archive.Archive
-
createSubArchive
public org.glassfish.api.deployment.archive.WritableArchive createSubArchive(String name) throws IOException - Specified by:
createSubArchivein interfaceorg.glassfish.api.deployment.archive.WritableArchive- Throws:
IOException
-
putNextEntry
public org.glassfish.api.deployment.archive.WritableArchiveEntry putNextEntry(String name) throws IOException - Specified by:
putNextEntryin interfaceorg.glassfish.api.deployment.archive.WritableArchive- Throws:
IOException
-