|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.api.deployment.archive.ReadableArchiveAdapter
org.glassfish.internal.embedded.ScatteredArchive
public class ScatteredArchive
Abstraction for a scattered archive (parts disseminated in various directories)
| Nested Class Summary | |
|---|---|
static class |
ScatteredArchive.Builder
|
| Method Summary | |
|---|---|
void |
close()
|
java.util.Enumeration<java.lang.String> |
entries()
Returns an enumeration of the module file entries. |
java.util.Enumeration<java.lang.String> |
entries(java.lang.String s)
Returns an enumeration of the module file entries with the specified prefix. |
boolean |
exists(java.lang.String name)
Returns whether or not a file by that name exists The file name must be relative to the root of the module. |
java.lang.Iterable<java.net.URL> |
getClassPath()
Get the classpath URLs |
java.util.Collection<java.lang.String> |
getDirectories()
|
java.io.InputStream |
getEntry(java.lang.String arg)
Returns the InputStream for the given entry name The file name must be relative to the root of the module. |
long |
getEntrySize(java.lang.String arg)
|
java.io.File |
getFile(java.lang.String name)
|
java.util.jar.Manifest |
getManifest()
Returns the manifest information for this archive |
java.lang.String |
getName()
Returns the name of the archive. |
java.io.File |
getResourcesDir()
|
java.net.URI |
getURI()
Returns the path used to create or open the underlying archive TODO: abstraction breakage: Several callers, most notably DeploymentContext.getSourceDir()
implementation, assumes that this URI is an URL, and in fact file URL. |
java.lang.String |
toString()
|
ScatteredArchive.Builder.type |
type()
Returns the archive type |
| Methods inherited from class org.glassfish.api.deployment.archive.ReadableArchiveAdapter |
|---|
delete, exists, getArchiveSize, getExtraData, getParentArchive, getSubArchive, isDirectory, open, removeExtraData, renameTo, setExtraData, setParentArchive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Iterable<java.net.URL> getClassPath()
public java.io.File getResourcesDir()
public java.io.InputStream getEntry(java.lang.String arg)
throws java.io.IOException
arg - the file name relative to the root of the module.
java.io.IOExceptionpublic long getEntrySize(java.lang.String arg)
getEntrySize in interface ReadableArchivegetEntrySize in class ReadableArchiveAdapter
public boolean exists(java.lang.String name)
throws java.io.IOException
name - the file name relative to the root of the module.
java.io.IOExceptionpublic java.util.Enumeration<java.lang.String> entries()
Currently under construction
entries in interface Archiveentries in class ReadableArchiveAdapter
public java.util.jar.Manifest getManifest()
throws java.io.IOException
java.io.IOExceptionpublic java.net.URI getURI()
DeploymentContext.getSourceDir()
implementation, assumes that this URI is an URL, and in fact file URL.
If this needs to be URL, use of URI is misleading. And furthermore,
if its needs to be a file URL, this should be File.
public java.lang.String getName()
public ScatteredArchive.Builder.type type()
public java.util.Enumeration<java.lang.String> entries(java.lang.String s)
Currently Not Supported
entries in interface Archiveentries in class ReadableArchiveAdapters - the prefix of entries to be included
public java.util.Collection<java.lang.String> getDirectories()
throws java.io.IOException
getDirectories in interface ArchivegetDirectories in class ReadableArchiveAdapterjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File getFile(java.lang.String name)
public void close()
throws java.io.IOException
close in interface Archiveclose in class ReadableArchiveAdapterjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||