Stay organized with collections
Save and categorize content based on your preferences.
open class UTFDataFormatException : IOException
Signals that a malformed string in modified UTF-8 format has been read in a data input stream or by any class that implements the data input interface. See the DataInput
class description for the format in which modified UTF-8 strings are read and written.
Summary
Public constructors |
Constructs a UTFDataFormatException with null as its error detail message.
|
Constructs a UTFDataFormatException with the specified detail message.
|
Public constructors
UTFDataFormatException()
Constructs a UTFDataFormatException
with null
as its error detail message.
UTFDataFormatException(s: String!)
Constructs a UTFDataFormatException
with the specified detail message. The string s
can be retrieved later by the java.lang.Throwable#getMessage
method of class java.lang.Throwable
.
Parameters |
s |
String!: the detail message. |
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,["# UTFDataFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nUTFDataFormatException\n======================\n\n```\nopen class UTFDataFormatException : IOException\n```\n\n|---|---|---|---|-------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../lang/Exception.html#) |||\n| | | ↳ | [java.io.IOException](/reference/kotlin/java/io/IOException) ||\n| | | | ↳ | [java.io.UTFDataFormatException](#) |\n\nSignals that a malformed string in [modified UTF-8](/reference/kotlin/java/io/DataInput#modified-utf-8) format has been read in a data input stream or by any class that implements the data input interface. See the [`DataInput`](/reference/kotlin/java/io/DataInput#modified-utf-8) class description for the format in which modified UTF-8 strings are read and written.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [UTFDataFormatException](#UTFDataFormatException())`()` Constructs a `UTFDataFormatException` with `null` as its error detail message. |\n| [UTFDataFormatException](#UTFDataFormatException(kotlin.String))`(`s:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a `UTFDataFormatException` with the specified detail message. |\n\nPublic constructors\n-------------------\n\n### UTFDataFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUTFDataFormatException()\n```\n\nConstructs a `UTFDataFormatException` with `null` as its error detail message. \n\n### UTFDataFormatException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nUTFDataFormatException(s: String!)\n```\n\nConstructs a `UTFDataFormatException` with the specified detail message. The string `s` can be retrieved later by the [java.lang.Throwable#getMessage](../lang/Throwable.html#getMessage()) method of class `java.lang.Throwable`.\n\n| Parameters ||\n|-----|--------------------------------------------------------------------------------------------------------|\n| `s` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: the detail message. |"]]