com.sun.enterprise.universal
Class PropertiesDecoder

java.lang.Object
  extended by com.sun.enterprise.universal.PropertiesDecoder

public class PropertiesDecoder
extends Object

Author:
Byron Nevins

Constructor Summary
PropertiesDecoder()
           
 
Method Summary
static Map<String,String> unflatten(String s)
          There are several CLI commands that take properties arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesDecoder

public PropertiesDecoder()
Method Detail

unflatten

public static Map<String,String> unflatten(String s)
There are several CLI commands that take properties arguments. The properties are "flattened". This class will unflatten them back into a Map for you.

Example Input: foo=goo:xyz:hoo=ioo

Output would be 3 pairs:

Parameters:
props - The flattened string properties
Returns:
A Map of the String keys and values. It will return an


Copyright © 2012 GlassFish Community. All Rights Reserved.