Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.event.script
Class FileScript

java.lang.Object
  extended by org.nuxeo.ecm.core.event.script.Script
      extended by org.nuxeo.ecm.core.event.script.FileScript

public class FileScript
extends Script

Script that comes from a file.

Author:
Bogdan Stefanescu

Field Summary
 
Fields inherited from class org.nuxeo.ecm.core.event.script.Script
lastModified, script, scripting, trackChanges
 
Constructor Summary
FileScript(File file)
           
FileScript(String path)
           
 
Method Summary
 String getExtension()
           
 String getLocation()
           
 Reader getReader()
           
 Reader getReaderIfModified()
           
 
Methods inherited from class org.nuxeo.ecm.core.event.script.Script
compile, getCompiledScript, getScripting, main, newScript, newScript, newScript, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileScript

public FileScript(File file)

FileScript

public FileScript(String path)
Method Detail

getExtension

public String getExtension()
Specified by:
getExtension in class Script

getLocation

public String getLocation()
Specified by:
getLocation in class Script

getReader

public Reader getReader()
                 throws IOException
Specified by:
getReader in class Script
Throws:
IOException

getReaderIfModified

public Reader getReaderIfModified()
                           throws IOException
Specified by:
getReaderIfModified in class Script
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.