public static String toString(Properties properties) throws IOException {
  StringWriter writer=new StringWriter();
  properties.store(writer,null);
  StringBuffer stringBuffer=writer.getBuffer();
  filterPropertiesComment(stringBuffer);
  return stringBuffer.toString();
}

public static String toString ( Properties properties ) throws IOException { StringWriter writer = new StringWriter ( ) ; properties . store ( writer , null ) ; StringBuffer stringBuffer = writer . getBuffer ( ) ; filterPropertiesComment ( stringBuffer ) ; return stringBuffer . toString ( ) ; }
transform the properties to string format
