org.systemsbiology.util
Class IncludeHandler

java.lang.Object
  extended byorg.systemsbiology.util.IncludeHandler

public class IncludeHandler
extends Object

Utility class for handling nested file inclusion, in a scripting environment.

Author:
Stephen Ramsey

Constructor Summary
IncludeHandler()
           
 
Method Summary
 File getDirectory()
           
 String getIncludeFileAbsolutePath(String pIncludeFileName)
           
 boolean isWithinIncludeFile()
           
 BufferedReader openReaderForIncludeFile(String pIncludedFileName, Charset pCharset)
           
 void setDirectory(File pDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncludeHandler

public IncludeHandler()
Method Detail

getDirectory

public File getDirectory()

setDirectory

public void setDirectory(File pDirectory)
                  throws IllegalArgumentException
Throws:
IllegalArgumentException

getIncludeFileAbsolutePath

public String getIncludeFileAbsolutePath(String pIncludeFileName)
                                  throws IOException
Throws:
IOException

openReaderForIncludeFile

public BufferedReader openReaderForIncludeFile(String pIncludedFileName,
                                               Charset pCharset)
                                        throws IOException
Throws:
IOException

isWithinIncludeFile

public boolean isWithinIncludeFile()