net.sourceforge.addam.ddlrun.utils
Class ClassLoaderReader

java.lang.Object
  extended by net.sourceforge.addam.ddlrun.utils.ClassLoaderReader
All Implemented Interfaces:
ResourceReader

public class ClassLoaderReader
extends Object
implements ResourceReader

Used to read resources from within the local classloader.

Since:
Mar 5, 2005
Author:
TIM3

Field Summary
(package private)  String completeName
           
private  BufferedReader reader
           
(package private)  String resourceName
           
(package private)  String resourcePath
           
private static String SEPARATOR
           
 
Constructor Summary
ClassLoaderReader(String resourcePath, String resourceName)
          Allows only the ClassLoaderReaderFactory to construct a ClassLoaderReader.
 
Method Summary
private  BufferedReader getReader()
           
 String readLine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private BufferedReader reader

resourcePath

final String resourcePath

resourceName

final String resourceName

completeName

final String completeName

SEPARATOR

private static final String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

ClassLoaderReader

ClassLoaderReader(String resourcePath,
                  String resourceName)
Allows only the ClassLoaderReaderFactory to construct a ClassLoaderReader.

Parameters:
resourcePath - the path to prepend when locating a resource
resourceName - the name of the resource to locate
Method Detail

readLine

public String readLine()
                throws IOException
Specified by:
readLine in interface ResourceReader
Throws:
IOException

getReader

private BufferedReader getReader()


Copyright © 2005-2006 ADDAM Project Team. All Rights Reserved.