public class SingleFileScriptArchive extends java.lang.Object implements ScriptArchive
Path.| Modifier and Type | Class and Description |
|---|---|
static class |
SingleFileScriptArchive.Builder
Used to Construct a
PathScriptArchive. |
| Modifier | Constructor and Description |
|---|---|
protected |
SingleFileScriptArchive(ScriptModuleSpec moduleSpec,
java.nio.file.Path rootDirPath,
java.lang.String fileName,
long createTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Set<java.lang.String> |
getArchiveEntryNames() |
long |
getCreateTime()
Timestamp used to resolve multiple revisions of the archive.
|
java.net.URL |
getEntry(java.lang.String entryName) |
ScriptModuleSpec |
getModuleSpec() |
java.net.URL |
getRootUrl() |
int |
hashCode() |
void |
setModuleSpec(ScriptModuleSpec spec)
Set the module spec for this archive.
|
protected SingleFileScriptArchive(ScriptModuleSpec moduleSpec, java.nio.file.Path rootDirPath, java.lang.String fileName, long createTime) throws java.io.IOException
java.io.IOExceptionpublic ScriptModuleSpec getModuleSpec()
getModuleSpec in interface ScriptArchivepublic void setModuleSpec(ScriptModuleSpec spec)
ScriptArchivesetModuleSpec in interface ScriptArchivespec - the module spec to set to.public java.net.URL getRootUrl()
getRootUrl in interface ScriptArchiveURLs representing the contents of this archive. should be
suitable for passing to a URLClassLoaderpublic java.util.Set<java.lang.String> getArchiveEntryNames()
getArchiveEntryNames in interface ScriptArchive@Nullable
public java.net.URL getEntry(java.lang.String entryName)
throws java.io.IOException
getEntry in interface ScriptArchivejava.io.IOExceptionpublic long getCreateTime()
ScriptArchivegetCreateTime in interface ScriptArchivepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object