Stay organized with collections
Save and categorize content based on your preferences.
StringBuilderPrinter
open class StringBuilderPrinter : Printer
Implementation of a android.util.Printer
that sends its output to a StringBuilder
.
Summary
Public constructors |
Create a new Printer that sends to a StringBuilder object.
|
Public constructors
StringBuilderPrinter
StringBuilderPrinter(builder: StringBuilder!)
Create a new Printer that sends to a StringBuilder object.
Parameters |
builder |
StringBuilder!: The StringBuilder where you would like output to go. |
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# StringBuilderPrinter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nStringBuilderPrinter\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/StringBuilderPrinter \"View this page in Java\") \n\n```\nopen class StringBuilderPrinter : Printer\n```\n\n|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.util.StringBuilderPrinter](#) |\n\nImplementation of a [android.util.Printer](/reference/kotlin/android/util/Printer) that sends its output to a [StringBuilder](../../java/lang/StringBuilder.html#).\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [StringBuilderPrinter](#StringBuilderPrinter(java.lang.StringBuilder))`(`builder:` `[StringBuilder](../../java/lang/StringBuilder.html#)!`)` Create a new Printer that sends to a StringBuilder object. |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [println](#println(kotlin.String))`(`x:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### StringBuilderPrinter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nStringBuilderPrinter(builder: StringBuilder!)\n```\n\nCreate a new Printer that sends to a StringBuilder object.\n\n| Parameters ||\n|-----------|-------------------------------------------------------------------------------------------------------------|\n| `builder` | [StringBuilder](../../java/lang/StringBuilder.html#)!: The StringBuilder where you would like output to go. |\n\nPublic methods\n--------------\n\n### println\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun println(x: String!): Unit\n```"]]