Stay organized with collections
Save and categorize content based on your preferences.
PrintStreamPrinter
open class PrintStreamPrinter : Printer
Implementation of a android.util.Printer
that sends its output to a java.io.PrintStream
.
Summary
Public constructors |
Create a new Printer that sends to a PrintWriter object.
|
Public constructors
PrintStreamPrinter
PrintStreamPrinter(pw: PrintStream!)
Create a new Printer that sends to a PrintWriter object.
Parameters |
pw |
PrintStream!: 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,["# PrintStreamPrinter\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPrintStreamPrinter\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/util/PrintStreamPrinter \"View this page in Java\") \n\n```\nopen class PrintStreamPrinter : Printer\n```\n\n|---|--------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.util.PrintStreamPrinter](#) |\n\nImplementation of a [android.util.Printer](/reference/kotlin/android/util/Printer) that sends its output to a [java.io.PrintStream](../../java/io/PrintStream.html#).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PrintStreamPrinter](#PrintStreamPrinter(java.io.PrintStream))`(`pw:` `[PrintStream](../../java/io/PrintStream.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### PrintStreamPrinter\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPrintStreamPrinter(pw: PrintStream!)\n```\n\nCreate a new Printer that sends to a PrintWriter object.\n\n| Parameters ||\n|------|-----------------------------------------------------------------------------------------------------|\n| `pw` | [PrintStream](../../java/io/PrintStream.html#)!: The PrintWriter where you would like output to go. |\n\nPublic methods\n--------------\n\n### println\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun println(x: String!): Unit\n```"]]