net.sourceforge.addam.ddlrun.utils
Class FileSystemReaderFactory

java.lang.Object
  extended by 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

Field Summary
private  File basePath
           
private static String SEPARATOR
           
 
Constructor Summary
FileSystemReaderFactory()
          Constructs a FileSystemReaderFactory with a base path of CWD
FileSystemReaderFactory(File basePath)
          Constructs a FileSystemReaderFactory the provided base path
FileSystemReaderFactory(String basePath)
          Constructs a FileSystemReaderFactory the provided base path
 
Method Summary
 ResourceReader getReader(String resource)
           
 ResourceReader getReader(String path, String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePath

private final File basePath

SEPARATOR

private static final String SEPARATOR
Constructor Detail

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
Method Detail

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.