Skip to content

Most visited

Recently visited

navigation
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


A MalformedInputException is thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset.

Summary

Public constructors

MalformedInputException(int length)

Constructs a new MalformedInputException.

Public methods

int getInputLength()

Gets the length of the malformed input.

String getMessage()

Returns the detail message which was provided when this Throwable was created.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

MalformedInputException

Added in API level 1
MalformedInputException (int length)

Constructs a new MalformedInputException.

Parameters
length int: the length of the malformed input.

Public methods

getInputLength

Added in API level 1
int getInputLength ()

Gets the length of the malformed input.

Returns
int the length of the malformed input.

getMessage

Added in API level 1
String getMessage ()

Returns the detail message which was provided when this Throwable was created. Returns null if no message was provided at creation time.

Returns
String
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.