ch.elca.dependency.util
Class DiskFileReader

java.lang.Object
  |
  +--ch.elca.dependency.util.DiskFileReader
All Implemented Interfaces:
PropertiesReader

public class DiskFileReader
extends java.lang.Object
implements PropertiesReader

The class DiskFileReader used to read user properties stored in plain Files. Usually such properties may and have to be set by users.

Version:
1.0-beta
Author:
Pawel Kowalski

Constructor Summary
DiskFileReader()
           
 
Method Summary
 java.util.Properties getProperties(java.lang.String propertiesName)
          Get the named Properties.
 java.io.InputStream getPropertiesAsStream(java.lang.String propertiesName)
          Get the named properties as a Stream.
static DiskFileReader singleton()
          Get the one and only instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskFileReader

public DiskFileReader()
Method Detail

singleton

public static DiskFileReader singleton()
Get the one and only instance of this class.

Returns:
a DiskFileReader value

getPropertiesAsStream

public java.io.InputStream getPropertiesAsStream(java.lang.String propertiesName)
Get the named properties as a Stream.

Specified by:
getPropertiesAsStream in interface PropertiesReader
Parameters:
propertiesName - a String value
Returns:
an InputStream value

getProperties

public java.util.Properties getProperties(java.lang.String propertiesName)
Get the named Properties.

Specified by:
getProperties in interface PropertiesReader
Parameters:
propertiesName - a String value
Returns:
a Properties value


Copyright © 2003 ELCA Informatique SA. All Rights Reserved.