java.lang.Object
com.tripi.asp.test.SimpleFileFactory
- All Implemented Interfaces:
- com.tripi.asp.parse.FileFactory
- public class SimpleFileFactory
- extends java.lang.Object
- implements com.tripi.asp.parse.FileFactory
This class is a factory to handle finding files on the local file
system. It is used by the other test routines.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBG
private static final org.apache.log4j.Category DBG
- Debugging class
SimpleFileFactory
public SimpleFileFactory()
resolveFile
public java.lang.String resolveFile(java.lang.String baseFilename,
java.lang.String relFile,
boolean virtual)
throws com.tripi.asp.AspException
- Resolve a relative file's location based on the given file.
- Specified by:
resolveFile in interface com.tripi.asp.parse.FileFactory
concatPath
private static java.lang.String concatPath(java.lang.String absPath,
java.lang.String addPath)
throws com.tripi.asp.AspException
- Internal utility function to concatenate two paths.
getResource
public java.io.InputStream getResource(java.lang.String filename)
throws com.tripi.asp.AspException
- Get the file resource.
- Specified by:
getResource in interface com.tripi.asp.parse.FileFactory