info.magnolia.init.properties
Class AbstractStreamBasedPropertySource.ConstructingProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by info.magnolia.init.properties.AbstractStreamBasedPropertySource.ConstructingProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Enclosing class:
AbstractStreamBasedPropertySource

public static class AbstractStreamBasedPropertySource.ConstructingProperties
extends Properties

A subclass of Properties which populates itself with a given InputStream. The given InputStream is silently closed after properties have been loaded.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
AbstractStreamBasedPropertySource.ConstructingProperties(InputStream in, String path)
           
 
Method Summary
protected  void loadAndClose(InputStream in)
           
 String toString()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStreamBasedPropertySource.ConstructingProperties

public AbstractStreamBasedPropertySource.ConstructingProperties(InputStream in,
                                                                String path)
                                                         throws IOException
Parameters:
in - the InputStream to load properties from.
path - optional reference to a path describing where the given InputStream has been opened from.
Throws:
IOException
Method Detail

loadAndClose

protected void loadAndClose(InputStream in)
                     throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Hashtable<Object,Object>


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.