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)
protected
ScriptFile(String ext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAbsolutePath()
String
getExtension()
File
getFile()
String
getFileName()
InputStream
getInputStream()
String
getRelativePath()
String
getURL()
boolean
isTemplate()
long
lastModified()
String
toString()
URI
toURI()
URL
toURL()
-
-
-
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
-
-