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

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

public class ArchiveEntryScriptSource
extends Object
implements ScriptSource


Constructor Summary
ArchiveEntryScriptSource(File archive, String entryName)
           
ArchiveEntryScriptSource(File archive, String entryName, String charset)
           
 
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

ArchiveEntryScriptSource

public ArchiveEntryScriptSource(File archive,
                                String entryName)

ArchiveEntryScriptSource

public ArchiveEntryScriptSource(File archive,
                                String entryName,
                                String charset)
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

toString

public String toString()
Overrides:
toString in class Object

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 © 2013. All Rights Reserved.