APIdia Launch Partner
Top Description Fields Constructors Methods
java.nio.charset

public Class MalformedInputException

extends CharacterCodingException
Class Inheritance

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.
Since
1.4

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
MalformedInputException(int
the length of the input
inputLength
)

Constructs an MalformedInputException with the given length.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the length of the input
getInputLength
()

Returns the length of the input.

public String

Returns:

the message
getMessage
()

Overrides java.lang.Throwable.getMessage.

Returns the message.

Field Detail

inputLengthback to summary
private int inputLength
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.nio.charset.CharacterCodingException.serialVersionUID.

Annotations
@Serial

Constructor Detail

MalformedInputExceptionback to summary
public MalformedInputException(int inputLength)

Constructs an MalformedInputException with the given length.

Parameters
inputLength:int

the length of the input

Method Detail

getInputLengthback to summary
public int getInputLength()

Returns the length of the input.

Returns:int

the length of the input

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the message.

Returns:String

the message