}
private void runTest()
{
PropertiesMap map = new PropertiesMap (System.getProperties());
XStringBuffer buf = new XStringBuffer();
System.out.println ("---------------------------------------" +
"---------------------------------------");
System.out.println ("*** Looping over properties by key set.");
System.out.println ("---------------------------------------" +
"---------------------------------------");
for (String key : map.keySet())
{
buf.clear();
buf.append (map.get (key));
buf.encodeMetacharacters();
System.out.println (key + "=" + buf.toString());
}
System.out.println ("---------------------------------------" +
"---------------------------------------");
System.out.println ("*** Looping over properties by entry set.");
System.out.println ("---------------------------------------" +
"---------------------------------------");
for (Map.Entry<String, String> entry : map.entrySet())
{
buf.clear();
buf.append (entry.getValue());
buf.encodeMetacharacters();
System.out.println (entry.getKey() + "=" + buf.toString());
}
}