FileDocCategorySizeDatePackage
MalformedInputException.javaAPI DocAndroid 1.5 API2255Wed May 06 22:41:04 BST 2009java.nio.charset

MalformedInputException

public class MalformedInputException extends CharacterCodingException
A {@code MalformedInputException} is thrown when a malformed input is encountered, for example if a byte sequence is illegal for the given charset.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private int
inputLength
Constructors Summary
public MalformedInputException(int length)
Constructs a new {@code MalformedInputException}.

param
length the length of the malformed input.
since
Android 1.0


                                     
       
        this.inputLength = length;
    
Methods Summary
public intgetInputLength()
Gets the length of the malformed input.

return
the length of the malformed input.
since
Android 1.0

        return this.inputLength;
    
public java.lang.StringgetMessage()
Gets a message describing this exception.

return
a message describing this exception.
since
Android 1.0

        // niochar.05=Malformed input length is {0}.
        return Messages.getString("niochar.05", this.inputLength); //$NON-NLS-1$