org.xins.common.collections
Class PropertyReaderConverter

java.lang.Object
  extended byorg.xins.common.collections.PropertyReaderConverter

public final class PropertyReaderConverter
extends Object

Converter that is able to convert PropertyReader objects to other kinds of objects.

Since:
XINS 1.0.1
Version:
$Revision: 1.17 $ $Date: 2008/07/04 10:22:49 $
Author:
Ernst de Haan

Method Summary
static Properties toProperties(PropertyReader propertyReader)
          Converts the specified PropertyReader object to a new Properties object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toProperties

public static Properties toProperties(PropertyReader propertyReader)
                               throws IllegalArgumentException
Converts the specified PropertyReader object to a new Properties object.

Parameters:
propertyReader - the PropertyReader object, cannot be null.
Returns:
a new Properties object, never null.
Throws:
IllegalArgumentException - if propertyReader == null.


See http://www.xins.org/.