com.zeroturnaround.liverebel.util.exec.impl
Class FileScriptSource

java.lang.Object
  extended by com.zeroturnaround.liverebel.util.exec.impl.FileScriptSource
All Implemented Interfaces:
ScriptSource

public class FileScriptSource
extends Object
implements ScriptSource


Constructor Summary
FileScriptSource(File file)
           
 
Method Summary
 boolean fillFile(File file)
           
 String getSource()
           
 boolean isValidSource()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileScriptSource

public FileScriptSource(File file)
Method Detail

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.