Package org.nuxeo.ecm.core.event.script
Class FileScript
- java.lang.Object
-
- org.nuxeo.ecm.core.event.script.Script
-
- org.nuxeo.ecm.core.event.script.FileScript
-
public class FileScript extends Script
Script that comes from a file.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description FileScript(File file)
FileScript(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExtension()
String
getLocation()
Reader
getReader()
Reader
getReaderIfModified()
-
Methods inherited from class org.nuxeo.ecm.core.event.script.Script
compile, getCompiledScript, getExtension, getScripting, newScript, newScript, newScript, run
-
-
-
-
Field Detail
-
file
protected final File file
-
-
Method Detail
-
getExtension
public String getExtension()
- Specified by:
getExtension
in classScript
-
getLocation
public String getLocation()
- Specified by:
getLocation
in classScript
-
getReader
public Reader getReader() throws IOException
- Specified by:
getReader
in classScript
- Throws:
IOException
-
getReaderIfModified
public Reader getReaderIfModified() throws IOException
- Specified by:
getReaderIfModified
in classScript
- Throws:
IOException
-
-