java.nio.charset
Class MalformedInputException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.nio.charset.CharacterCodingException
java.nio.charset.MalformedInputException
- All Implemented Interfaces:
- Serializable
public class MalformedInputException
- extends CharacterCodingException
Thrown when a malformed input is encountered, for example, a byte sequence is
illegal for the given charset.
- See Also:
- Serialized Form
MalformedInputException
public MalformedInputException(int length)
- Constructs an instance of this exception.
- Parameters:
length - the length of the malformed input
getInputLength
public int getInputLength()
- Gets the length of the malformed input.
- Returns:
- the length of the malformed input
getMessage
public String getMessage()
- Gets a message describing this exception.
- Overrides:
getMessage in class Throwable
- Returns:
- a message describing this exception
Please submit a feedback, bug or feature