MalformedInputException | API reference | Android Developers (original) (raw)
open class MalformedInputException : CharacterCodingException
kotlin.Any | ||||
---|---|---|---|---|
↳ | kotlin.Throwable | |||
↳ | java.lang.Exception | |||
↳ | java.io.IOException | |||
↳ | java.nio.charset.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 |
---|
MalformedInputException(inputLength: Int) Constructs an MalformedInputException with the given length. |
Public methods | |
---|---|
open Int | getInputLength() Returns the length of the input. |
Properties | |
---|---|
open String? | message Returns the message. |
Public constructors
MalformedInputException
MalformedInputException(inputLength: Int)
Constructs an MalformedInputException
with the given length.
Parameters | |
---|---|
inputLength | Int: the length of the input |
Public methods
getInputLength
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.
Return | |
---|---|
String? | 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.