public static String formatTags ( final Map < String , String > tagMap ) { StringBuilder stringBuilder = new StringBuilder ( ) ; String delimeter = "" ; for ( Map . Entry < String , String > tag : tagMap . entrySet ( ) ) { stringBuilder . append ( delimeter ) . append ( sanitize ( tag . getKey ( ) ) ) . append ( "=" ) . append ( sanitize ( tag . getValue ( ) ) ) ; delimeter = " " ; } return stringBuilder . toString ( ) ; }
Convert a tag map into a space - delimited string .