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.IOException
public ScriptModuleSpec getModuleSpec()
getModuleSpec
in interface ScriptArchive
public void setModuleSpec(ScriptModuleSpec spec)
ScriptArchive
setModuleSpec
in interface ScriptArchive
spec
- the module spec to set to.public java.net.URL getRootUrl()
getRootUrl
in interface ScriptArchive
URL
s representing the contents of this archive. should be
suitable for passing to a URLClassLoader
public 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 ScriptArchive
java.io.IOException
public long getCreateTime()
ScriptArchive
getCreateTime
in interface ScriptArchive
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object