mPrinter = printer; mPrefix = prefix;
Creates a new PrefixPrinter. If prefix is null or empty, the provided printer is returned, rather than making a prefixing printer. if (prefix == null || prefix.equals("")) { return printer; } return new PrefixPrinter(printer, prefix);
If prefix is null or empty, the provided printer is returned, rather than making a prefixing printer.
if (prefix == null || prefix.equals("")) { return printer; } return new PrefixPrinter(printer, prefix);
mPrinter.println(mPrefix + str);