added in API level 1

MalformedInputException

public class MalformedInputException
extends CharacterCodingException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.nio.charset.CharacterCodingException
           ↳ java.nio.charset.MalformedInputException


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(int inputLength)

Constructs an MalformedInputException with the given length.

Public methods

int getInputLength()

Returns the length of the input.

String getMessage()

Returns the message.

Inherited methods

Public constructors

MalformedInputException

added in API level 1
MalformedInputException (int inputLength)

Constructs an MalformedInputException with the given length.

Parameters
inputLength int: the length of the input

Public methods

getInputLength

added in API level 1
int getInputLength ()

Returns the length of the input.

Returns
int the length of the input

getMessage

added in API level 1
String getMessage ()

Returns the message.

Returns
String the message