Most visited

Recently visited

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


当输入字节序列对于给定的字符集不合法,或者输入字符序列不是合法的16位Unicode序列时,会检查异常。

Summary

Public constructors

MalformedInputException(int inputLength)

Public methods

int getInputLength()
String getMessage()

返回此throwable的详细消息字符串。

Inherited methods

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

Public constructors

MalformedInputException

Added in API level 1
MalformedInputException (int inputLength)

Parameters
inputLength int

Public methods

getInputLength

Added in API level 1
int getInputLength ()

Returns
int

getMessage

Added in API level 1
String getMessage ()

返回此throwable的详细消息字符串。

Returns
String the detail message string of this Throwable instance (which may be null).

Hooray!