eu.xenit.apix.utils.PrintUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apix-interface Show documentation
Show all versions of apix-interface Show documentation
Xenit API-X Java interface
package eu.xenit.apix.utils;
public class PrintUtils {
/**
* indent a multiline string for each line with a prefix.
*
* @param prefix The prefix add before each line
* @param s The multiline string
* @return A multiline string which is prefixed.
*/
public static String indent(String prefix, String s) {
return prefix + s.replaceAll("\n", "\n" + prefix);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy