Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.core.util
Class Properties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.lang.String,java.lang.String>
          extended by org.nuxeo.ecm.automation.core.util.Properties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>

public class Properties
extends java.util.HashMap<java.lang.String,java.lang.String>

Inline properties file content. This class exists to have a real type for parameters accepting properties content.

Author:
Bogdan Stefanescu
See Also:
Constants, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Properties()
           
Properties(int size)
           
Properties(java.util.Map<java.lang.String,java.lang.String> props)
           
Properties(java.lang.String content)
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.io.Reader reader)
           
static void loadProperties(java.io.Reader reader, java.util.Map<java.lang.String,java.lang.String> map)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

Properties

public Properties()

Properties

public Properties(int size)

Properties

public Properties(java.util.Map<java.lang.String,java.lang.String> props)

Properties

public Properties(java.lang.String content)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

loadProperties

public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.io.Reader reader)
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

loadProperties

public static void loadProperties(java.io.Reader reader,
                                  java.util.Map<java.lang.String,java.lang.String> map)
                           throws java.lang.Exception
Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.