|
||||||||||
| 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()
|
Enumeration<String> |
entries()
Returns an enumeration of the module file entries. |
Enumeration<String> |
entries(String s)
Returns an enumeration of the module file entries with the specified prefix. |
boolean |
exists(String name)
Returns whether or not a file by that name exists The file name must be relative to the root of the module. |
Iterable<URL> |
getClassPath()
Get the classpath URLs |
Collection<String> |
getDirectories()
|
InputStream |
getEntry(String arg)
Returns the InputStream for the given entry name The file name must be relative to the root of the module. |
long |
getEntrySize(String arg)
|
File |
getFile(String name)
|
Manifest |
getManifest()
Returns the manifest information for this archive |
String |
getName()
Returns the name of the archive. |
File |
getResourcesDir()
|
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. |
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 Iterable<URL> getClassPath()
public File getResourcesDir()
public InputStream getEntry(String arg)
throws IOException
arg - the file name relative to the root of the module.
IOExceptionpublic long getEntrySize(String arg)
getEntrySize in interface ReadableArchivegetEntrySize in class ReadableArchiveAdapter
public boolean exists(String name)
throws IOException
name - the file name relative to the root of the module.
IOExceptionpublic Enumeration<String> entries()
Currently under construction
entries in interface Archiveentries in class ReadableArchiveAdapter
public Manifest getManifest()
throws IOException
IOExceptionpublic 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 String getName()
public ScatteredArchive.Builder.type type()
public Enumeration<String> entries(String s)
Currently Not Supported
entries in interface Archiveentries in class ReadableArchiveAdapters - the prefix of entries to be included
public Collection<String> getDirectories()
throws IOException
getDirectories in interface ArchivegetDirectories in class ReadableArchiveAdapterIOExceptionpublic String toString()
toString in class Objectpublic File getFile(String name)
public void close()
throws IOException
close in interface Archiveclose in class ReadableArchiveAdapterIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||