Package org.onemind.commons.java.util
Class MapUtils
- java.lang.Object
-
- org.onemind.commons.java.util.MapUtils
-
public final class MapUtils extends java.lang.Object
A map utility class- Version:
- $Id: MapUtils.java,v 1.3 2004/10/31 16:02:21 thlee Exp $ $Name: $
- Author:
- TiongHiang Lee (thlee@onemindsoft.org)
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MapUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
dump(java.util.Map m, java.io.Writer writer)
Dump the map in name=value linesstatic java.lang.String
toString(java.util.Map m)
Get a string representation of the content in the map
-
-
-
Method Detail
-
dump
public static void dump(java.util.Map m, java.io.Writer writer) throws java.io.IOException
Dump the map in name=value lines- Parameters:
m
- the mapwriter
- the writer- Throws:
java.io.IOException
- if there's IO problem
-
toString
public static java.lang.String toString(java.util.Map m) throws java.io.IOException
Get a string representation of the content in the map- Parameters:
m
- the map- Returns:
- a string with the format of a=b separated by line break
- Throws:
java.io.IOException
-
-