public static String stringFromProperties ( Properties props ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( 2048 ) ; props . store ( baos , null ) ; String propsString ; propsString = URLEncoder . encode ( baos . toString ( "ISO-8859-1" ) , "ISO-8859-1" ) ; return propsString ; }
Returns the Properties formatted as a String