to top
Android APIs
public class

StringBuilderPrinter

extends Object
implements Printer
java.lang.Object
   ↳ android.util.StringBuilderPrinter

Class Overview

Implementation of a Printer that sends its output to a StringBuilder.

Summary

Public Constructors

? Examples
StringBuilderPrinter( StringBuilder builder)
Create a new Printer that sends to a StringBuilder object.
Public Methods

? Examples
void println( String x)
Write a line of text to the output.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.util.Printer

Public Constructors

public StringBuilderPrinter (StringBuilder builder)

Added in API level 1

Create a new Printer that sends to a StringBuilder object.

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

Public Methods

public void println (String x)

Added in API level 1

Write a line of text to the output. There is no need to terminate the given string with a newline.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.