FileDocCategorySizeDatePackage
StringBuilderPrinter.javaAPI DocAndroid 1.5 API1318Wed May 06 22:41:56 BST 2009android.util

StringBuilderPrinter

public class StringBuilderPrinter extends Object implements Printer
Implementation of a {@link android.util.Printer} that sends its output to a {@link StringBuilder}.

Fields Summary
private final StringBuilder
mBuilder
Constructors Summary
public StringBuilderPrinter(StringBuilder builder)
Create a new Printer that sends to a StringBuilder object.

param
builder The StringBuilder where you would like output to go.

        mBuilder = builder;
    
Methods Summary
public voidprintln(java.lang.String x)

        mBuilder.append(x);
        int len = x.length();
        if (len <= 0 || x.charAt(len-1) != '\n") {
            mBuilder.append('\n");
        }