Class ScriptFile
- java.lang.Object
-
- org.nuxeo.ecm.webengine.scripting.ScriptFile
-
- Direct Known Subclasses:
ScriptJarFile
public class ScriptFile extends Object
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Modifier Constructor Description ScriptFile(File file)protectedScriptFile(String ext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbsolutePath()StringgetExtension()FilegetFile()StringgetFileName()InputStreamgetInputStream()StringgetRelativePath()StringgetURL()booleanisTemplate()longlastModified()StringtoString()URItoURI()URLtoURL()
-
-
-
Constructor Detail
-
ScriptFile
protected ScriptFile(String ext)
-
ScriptFile
public ScriptFile(File file) throws IOException
- Throws:
IOException
-
-
Method Detail
-
isTemplate
public boolean isTemplate()
-
getFile
public File getFile()
-
getExtension
public String getExtension()
-
getAbsolutePath
public String getAbsolutePath()
-
getRelativePath
public String getRelativePath()
-
getFileName
public String getFileName()
-
getURL
public String getURL() throws MalformedURLException
- Throws:
MalformedURLException
-
toURL
public URL toURL() throws MalformedURLException
- Throws:
MalformedURLException
-
toURI
public URI toURI()
-
lastModified
public long lastModified()
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
-