net.sourceforge.addam.ddlrun.utils
Class ClassLoaderReader
java.lang.Object
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
Constructor Summary |
ClassLoaderReader(String resourcePath,
String resourceName)
Allows only the ClassLoaderReaderFactory to construct a ClassLoaderReader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ClassLoaderReader
ClassLoaderReader(String resourcePath,
String resourceName)
- Allows only the ClassLoaderReaderFactory to construct a ClassLoaderReader.
- Parameters:
resourcePath
- the path to prepend when locating a resourceresourceName
- the name of the resource to locate
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.