net.sourceforge.addam.ddlrun.utils
Class FileSystemReaderFactory
java.lang.Object
net.sourceforge.addam.ddlrun.utils.FileSystemReaderFactory
- All Implemented Interfaces:
- ResourceReaderFactory
public class FileSystemReaderFactory
- extends Object
- implements ResourceReaderFactory
Used to retrieve a FileSystemReader.
- Since:
- Mar 5, 2005
- Author:
- TIM3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
basePath
private final File basePath
SEPARATOR
private static final String SEPARATOR
FileSystemReaderFactory
public FileSystemReaderFactory()
- Constructs a FileSystemReaderFactory with a base path of CWD
FileSystemReaderFactory
public FileSystemReaderFactory(String basePath)
- Constructs a FileSystemReaderFactory the provided base path
- Parameters:
basePath
- the path to prepend to relative paths passed to getReader
FileSystemReaderFactory
public FileSystemReaderFactory(File basePath)
- Constructs a FileSystemReaderFactory the provided base path
- Parameters:
basePath
- the path to prepend to relative paths passed to getReader
getReader
public ResourceReader getReader(String resource)
- Specified by:
getReader
in interface ResourceReaderFactory
getReader
public ResourceReader getReader(String path,
String resource)
- Specified by:
getReader
in interface ResourceReaderFactory
Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.