Stay organized with collections
Save and categorize content based on your preferences.
Dumpable
public
interface
Dumpable
Represents an object whose state can be dumped into a PrintWriter
.
Summary
Public methods
dump
public abstract void dump (PrintWriter writer,
String[] args)
Dumps the internal state into the given writer
.
Parameters |
writer |
PrintWriter : writer to be written to
This value cannot be null . |
args |
String : optional list of arguments
This value may be null . |
getDumpableName
public String getDumpableName ()
Gets the name of the Dumpable
.
Returns |
String |
class name, by default.
This value cannot be null . |
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,["# Dumpable\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nDumpable\n========\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/util/Dumpable \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nDumpable\n`\n\n\n`\n\n\n`\n\n|-----------------------|\n| android.util.Dumpable |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents an object whose state can be dumped into a [PrintWriter](/reference/java/io/PrintWriter).\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[dump](/reference/android/util/Dumpable#dump(java.io.PrintWriter,%20java.lang.String[]))`(`[PrintWriter](/reference/java/io/PrintWriter)` writer, `[String[]](/reference/java/lang/String)` args) ` Dumps the internal state into the given `writer`. |\n| ` default `[String](/reference/java/lang/String) | ` `[getDumpableName](/reference/android/util/Dumpable#getDumpableName())`() ` Gets the name of the [Dumpable](/reference/android/util/Dumpable). |\n\nPublic methods\n--------------\n\n### dump\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void dump (PrintWriter writer, \n String[] args)\n```\n\nDumps the internal state into the given `writer`.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------|\n| `writer` | `PrintWriter`: writer to be written to This value cannot be `null`. \u003cbr /\u003e |\n| `args` | `String`: optional list of arguments This value may be `null`. \u003cbr /\u003e |\n\n### getDumpableName\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic String getDumpableName ()\n```\n\nGets the name of the [Dumpable](/reference/android/util/Dumpable).\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|-------------------------------------------------------------|\n| [String](/reference/java/lang/String) | class name, by default. This value cannot be `null`. \u003cbr /\u003e |"]]