Class 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 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
    • Constructor Detail

      • MapUtils

        private MapUtils()
    • 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