public class ScatteredArchive
extends org.glassfish.api.deployment.archive.ReadableArchiveAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
ScatteredArchive.Builder |
| Modifier and Type | Method and Description |
|---|---|
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
|
addArchiveMetaData, delete, exists, getArchiveMetaData, getArchiveSize, getExtraData, getParentArchive, getSubArchive, isDirectory, open, removeArchiveMetaData, removeExtraData, renameTo, setExtraData, setParentArchivepublic 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 org.glassfish.api.deployment.archive.ReadableArchivegetEntrySize in class org.glassfish.api.deployment.archive.ReadableArchiveAdapterpublic 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 org.glassfish.api.deployment.archive.Archiveentries in class org.glassfish.api.deployment.archive.ReadableArchiveAdapterpublic 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 org.glassfish.api.deployment.archive.Archiveentries in class org.glassfish.api.deployment.archive.ReadableArchiveAdapters - the prefix of entries to be includedpublic Collection<String> getDirectories() throws IOException
getDirectories in interface org.glassfish.api.deployment.archive.ArchivegetDirectories in class org.glassfish.api.deployment.archive.ReadableArchiveAdapterIOExceptionpublic void close()
throws IOException
close in interface org.glassfish.api.deployment.archive.Archiveclose in class org.glassfish.api.deployment.archive.ReadableArchiveAdapterIOExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.