com.zeroturnaround.liverebel.util.exec.impl
Class FileScriptSource
java.lang.Object
com.zeroturnaround.liverebel.util.exec.impl.FileScriptSource
- All Implemented Interfaces:
- ScriptSource
public class FileScriptSource
- extends Object
- implements ScriptSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileScriptSource
public FileScriptSource(File file)
getSource
public String getSource()
throws IOException
- Specified by:
getSource in interface ScriptSource
- Returns:
- scripts as a string.
- Throws:
IOException - - if something goes wrong with reading the source
fillFile
public boolean fillFile(File file)
throws IOException
- Specified by:
fillFile in interface ScriptSource
- Throws:
IOException
isValidSource
public boolean isValidSource()
- Specified by:
isValidSource in interface ScriptSource
Copyright © 2012. All Rights Reserved.