Map < String , String > stringToTags ( String tagsmapstring ) { String [ ] sb = tagsmapstring . split ( "\\r" ) ; Map < String , String > map = new HashMap <> ( ) ; for ( String key : sb ) { if ( key . contains ( "=" ) ) { String [ ] set = key . split ( "=" ) ; if ( set . length == 2 ) map . put ( set [ 0 ] , set [ 1 ] ) ; } } return map ; }
Convert string representation back to tags map .