Package android.util

Class PrefixPrinter

  • All Implemented Interfaces:
    Printer

    public class PrefixPrinter
    extends Object
    implements Printer
    PrefixPrinter is a Printer which prefixes all lines with a given prefix.
    • Method Detail

      • create

        public static Printer create​(Printer printer,
                                     String prefix)
        Creates a new PrefixPrinter.

        If prefix is null or empty, the provided printer is returned, rather than making a prefixing printer.

      • println

        public void println​(String str)
        Description copied from interface: Printer
        Write a line of text to the output. There is no need to terminate the given string with a newline.
        Specified by:
        println in interface Printer