cz.cuni.amis.utils.configuration.providers
Class AbstractPropertiesProvider

Package class diagram package AbstractPropertiesProvider
java.lang.Object
  extended by cz.cuni.amis.utils.configuration.PropertyProvider
      extended by cz.cuni.amis.utils.configuration.providers.AbstractPropertiesProvider
All Implemented Interfaces:
Comparable<PropertyProvider>

public abstract class AbstractPropertiesProvider
extends PropertyProvider

Wrapper of java.util.Properties class.

Author:
ik

Constructor Summary
AbstractPropertiesProvider(InputStream is, String sourceDescription)
           
 
Method Summary
 String getProperty(String key)
          Searches for given property key.
 String toString()
           
 
Methods inherited from class cz.cuni.amis.utils.configuration.PropertyProvider
compareTo, getPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPropertiesProvider

public AbstractPropertiesProvider(InputStream is,
                                  String sourceDescription)
Parameters:
sourceDescription - human readable decription of resource from which the properties were read
is - Reader from which the Properties can be loaded.
Method Detail

getProperty

public String getProperty(String key)
Description copied from class: PropertyProvider
Searches for given property key.

Specified by:
getProperty in class PropertyProvider
Returns:
null if the property wasn't found

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.