Class ScriptFile
- java.lang.Object
-
- org.nuxeo.ecm.webengine.scripting.ScriptFile
-
public final class ScriptFile extends Object
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description ScriptFile(File file)
-
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()
-
-
-
Field Detail
-
ROOT_PATH
public static final String ROOT_PATH
-
-
Constructor Detail
-
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
-
-