|
||||||||||
| 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(InputStream is)
Creates a new instance of MemoryMappedArchive |
|
MemoryMappedArchive(ReadableArchive source)
|
| Method Summary | |
|---|---|
void |
close()
close the abstract archive |
boolean |
delete()
delete the archive |
Enumeration |
entries()
|
Enumeration |
entries(Enumeration embeddedArchives)
|
boolean |
exists()
|
boolean |
exists(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()
|
Collection<String> |
getDirectories()
|
InputStream |
getEntry(String name)
|
long |
getEntrySize(String name)
Returns the entry size for a given entry name or 0 if not known |
JarEntry |
getJarEntry(String name)
|
Manifest |
getManifest()
|
String |
getName()
Returns the name for the archive. |
String |
getPath()
|
ReadableArchive |
getSubArchive(String name)
create or obtain an embedded archive within this abstraction. |
URI |
getURI()
|
void |
open(URI uri)
|
boolean |
renameTo(String name)
rename the archive |
void |
setURI(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(InputStream is)
throws IOException
IOExceptionpublic MemoryMappedArchive(byte[] bits)
public MemoryMappedArchive(ReadableArchive source)
throws IOException
IOException| Method Detail |
|---|
public byte[] getByteArray()
public void open(URI uri)
throws IOException
open in interface ReadableArchiveIOException
public void close()
throws IOException
close in interface ArchiveIOExceptionpublic boolean delete()
delete in interface ReadableArchivepublic Enumeration entries()
entries in interface Archive
public Collection<String> getDirectories()
throws IOException
getDirectories in interface ArchiveIOExceptionpublic Enumeration entries(Enumeration embeddedArchives)
public boolean exists()
exists in interface ReadableArchivepublic String getPath()
public long getArchiveSize()
throws NullPointerException,
SecurityException
getArchiveSize in interface ArchiveNullPointerException
SecurityExceptionpublic URI getURI()
getURI in interface Archivepublic void setURI(URI uri)
public ReadableArchive getSubArchive(String name)
throws IOException
getSubArchive in interface ReadableArchivename - the name of the embedded archive.
IOException
public boolean exists(String name)
throws IOException
exists in interface ReadableArchiveexists in class JarArchivename - the file name relative to the root of the module.
IOException
public InputStream getEntry(String name)
throws IOException
getEntry in interface ReadableArchivename - the entry name
IOExceptionpublic JarEntry getJarEntry(String name)
getJarEntry in class JarArchivepublic long getEntrySize(String name)
getEntrySize in interface ReadableArchivename - the entry name
public Manifest getManifest()
throws IOException
getManifest in interface ArchiveIOExceptionpublic boolean renameTo(String name)
renameTo in interface ReadableArchivename - the archive namepublic 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 | |||||||||