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 | |
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
public 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
public int getInputLength ()
Returns the length of the input.
| Returns | |
|---|---|
int | the length of the input |
getMessage
Added in API level 1
public String getMessage ()
Returns the message.
| Returns | |
|---|---|
String | the message |