Stay organized with collections
Save and categorize content based on your preferences.
open class MalformedInputException : CharacterCodingException
Checked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.
Summary
Public constructors |
Constructs an MalformedInputException with the given length.
|
Public methods |
open Int |
Returns the length of the input.
|
Properties |
open String? |
Returns the message.
|
Public constructors
MalformedInputException(inputLength: Int)
Constructs an MalformedInputException
with the given length.
Parameters |
inputLength |
Int: the length of the input |
Public methods
open fun getInputLength(): Int
Returns the length of the input.
Return |
Int |
the length of the input |
Properties
message
open val message: String?
Returns the 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,["# MalformedInputException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMalformedInputException\n=======================\n\n```\nopen class MalformedInputException : CharacterCodingException\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](../../io/IOException.html#) |||\n| | | | ↳ | [java.nio.charset.CharacterCodingException](/reference/kotlin/java/nio/charset/CharacterCodingException) ||\n| | | | | ↳ | [java.nio.charset.MalformedInputException](#) |\n\nChecked exception thrown when an input byte sequence is not legal for given charset, or an input character sequence is not a legal sixteen-bit Unicode sequence.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MalformedInputException](#MalformedInputException(kotlin.Int))`(`inputLength:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructs an `MalformedInputException` with the given length. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getInputLength](#getInputLength())`()` Returns the length of the input. |\n\n| Properties ||\n|----------------------------------------------------------------------------------------|--------------------------------------------------------|\n| open [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [message](#message:kotlin.String) Returns the message. |\n\nPublic constructors\n-------------------\n\n### MalformedInputException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMalformedInputException(inputLength: Int)\n```\n\nConstructs an `MalformedInputException` with the given length.\n\n| Parameters ||\n|---------------|-----------------------------------------------------------------------------------------------------|\n| `inputLength` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the length of the input |\n\nPublic methods\n--------------\n\n### getInputLength\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getInputLength(): Int\n```\n\nReturns the length of the input.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the length of the input |\n\nProperties\n----------\n\n### message\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen val message: String?\n```\n\nReturns the message.\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | the message |"]]