java.nio.charset

Class MalformedInputException

public class MalformedInputException extends CharacterCodingException

Since: 1.4

Constructor Summary
MalformedInputException(int inputLength)
Creates the exception
Method Summary
intgetInputLength()
Retrieves the position of the malformed input in the input stream.
StringgetMessage()
Returns the detail message string of this throwable

Constructor Detail

MalformedInputException

public MalformedInputException(int inputLength)
Creates the exception

Parameters: inputLength the position of malformed input in the input stream

Method Detail

getInputLength

public int getInputLength()
Retrieves the position of the malformed input in the input stream.

Returns: the position

getMessage

public String getMessage()
Returns the detail message string of this throwable

Returns: the message