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

public Class UnmappableCharacterException

extends CharacterCodingException
Class Inheritance

Checked exception thrown when an input character (or byte) sequence is valid but cannot be mapped to an output byte (or character) sequence.
Since
1.4

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

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

Constructs an UnmappableCharacterException 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

UnmappableCharacterExceptionback to summary
public UnmappableCharacterException(int inputLength)

Constructs an UnmappableCharacterException 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