in spark-doris-connector/src/main/java/org/apache/doris/spark/util/IOUtils.java [28:38]
public static String propsToString(Properties props) throws IllegalArgumentException {
StringWriter sw = new StringWriter();
if (props != null) {
try {
props.store(sw, "");
} catch (IOException ex) {
throw new IllegalArgumentException("Cannot parse props to String.", ex);
}
}
return sw.toString();
}