Stay organized with collections
Save and categorize content based on your preferences.
PrintWriterPrinter
open class PrintWriterPrinter : Printer
Implementation of a android.util.Printer
that sends its output to a java.io.PrintWriter
.
Summary
Public constructors |
Create a new Printer that sends to a PrintWriter object.
|
Public constructors
PrintWriterPrinter
PrintWriterPrinter(pw: PrintWriter!)
Create a new Printer that sends to a PrintWriter object.
Parameters |
pw |
PrintWriter!: The PrintWriter 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PrintWriterPrinter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPrintWriterPrinter\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/PrintWriterPrinter \"View this page in Java\") \n\n```\nopen class PrintWriterPrinter : Printer\n```\n\n|---|--------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.util.PrintWriterPrinter](#) |\n\nImplementation of a [android.util.Printer](/reference/kotlin/android/util/Printer) that sends its output to a [java.io.PrintWriter](../../java/io/PrintWriter.html#).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PrintWriterPrinter](#PrintWriterPrinter(java.io.PrintWriter))`(`pw:` `[PrintWriter](../../java/io/PrintWriter.html#)!`)` Create a new Printer that sends to a PrintWriter 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### PrintWriterPrinter\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPrintWriterPrinter(pw: PrintWriter!)\n```\n\nCreate a new Printer that sends to a PrintWriter object.\n\n| Parameters ||\n|------|-----------------------------------------------------------------------------------------------------|\n| `pw` | [PrintWriter](../../java/io/PrintWriter.html#)!: The PrintWriter 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```"]]