org.onemind.commons.java.util
Class MapUtils

java.lang.Object
  extended byorg.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)

Method Summary
static void dump(java.util.Map m, java.io.Writer writer)
          Dump the map in name=value lines
static java.lang.String toString(java.util.Map m)
          Get a string representation of the content in the map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 map
writer - 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


Copyright © 2004-2006 . All Rights Reserved.