|
||||||||||
| 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.MemoryMappedArchive
@Service @Scoped(value=org.jvnet.hk2.component.PerLookup.class) public class MemoryMappedArchive
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
extraData, parentArchive |
| Constructor Summary | |
|---|---|
protected |
MemoryMappedArchive()
Creates a new instance of MemoryMappedArchive |
|
MemoryMappedArchive(byte[] bits)
|
|
MemoryMappedArchive(java.io.InputStream is)
Creates a new instance of MemoryMappedArchive |
|
MemoryMappedArchive(ReadableArchive source)
|
| Method Summary | |
|---|---|
void |
close()
close the abstract archive |
boolean |
delete()
delete the archive |
java.util.Enumeration |
entries()
|
java.util.Enumeration |
entries(java.util.Enumeration embeddedArchives)
|
boolean |
exists()
|
boolean |
exists(java.lang.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 |
byte[] |
getByteArray()
|
java.util.Collection<java.lang.String> |
getDirectories()
|
java.io.InputStream |
getEntry(java.lang.String name)
|
long |
getEntrySize(java.lang.String name)
Returns the entry size for a given entry name or 0 if not known |
java.util.jar.JarEntry |
getJarEntry(java.lang.String name)
|
java.util.jar.Manifest |
getManifest()
|
java.lang.String |
getName()
Returns the name for the archive. |
java.lang.String |
getPath()
|
ReadableArchive |
getSubArchive(java.lang.String name)
create or obtain an embedded archive within this abstraction. |
java.net.URI |
getURI()
|
void |
open(java.net.URI uri)
|
boolean |
renameTo(java.lang.String name)
rename the archive |
void |
setURI(java.net.URI uri)
|
| Methods inherited from class com.sun.enterprise.deployment.deploy.shared.JarArchive |
|---|
entries, getExtraData, 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.ReadableArchive |
|---|
getExtraData, getParentArchive, removeExtraData, setExtraData, setParentArchive |
| Methods inherited from interface org.glassfish.api.deployment.archive.Archive |
|---|
entries, isDirectory |
| Constructor Detail |
|---|
protected MemoryMappedArchive()
public MemoryMappedArchive(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic MemoryMappedArchive(byte[] bits)
public MemoryMappedArchive(ReadableArchive source)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public byte[] getByteArray()
public void open(java.net.URI uri)
throws java.io.IOException
open in interface ReadableArchivejava.io.IOException
public void close()
throws java.io.IOException
close in interface Archivejava.io.IOExceptionpublic boolean delete()
delete in interface ReadableArchivepublic 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 boolean exists()
exists in interface ReadableArchivepublic java.lang.String getPath()
public long getArchiveSize()
throws java.lang.NullPointerException,
java.lang.SecurityException
getArchiveSize in interface Archivejava.lang.NullPointerException
java.lang.SecurityExceptionpublic java.net.URI getURI()
getURI in interface Archivepublic void setURI(java.net.URI uri)
public ReadableArchive getSubArchive(java.lang.String name)
throws java.io.IOException
getSubArchive in interface ReadableArchivename - the name of the embedded archive.
java.io.IOException
public boolean exists(java.lang.String name)
throws java.io.IOException
exists in interface ReadableArchiveexists in class JarArchivename - the file name relative to the root of the module.
java.io.IOException
public java.io.InputStream getEntry(java.lang.String name)
throws java.io.IOException
getEntry in interface ReadableArchivename - the entry name
java.io.IOExceptionpublic java.util.jar.JarEntry getJarEntry(java.lang.String name)
getJarEntry in class JarArchivepublic long getEntrySize(java.lang.String name)
getEntrySize in interface ReadableArchivename - the entry name
public java.util.jar.Manifest getManifest()
throws java.io.IOException
getManifest in interface Archivejava.io.IOExceptionpublic boolean renameTo(java.lang.String name)
renameTo in interface ReadableArchivename - the archive namepublic java.lang.String getName()
For a MemoryMappedArhive there is no name, so an empty string is returned.
getName in interface ArchivegetName in class JarArchive
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||