English | Site Directory

Android - An Open Handset Alliance Project

java.nio.charset
public class

java.nio.charset.MalformedInputException

java.lang.Object
java.lang.Throwable Serializable
java.lang.Exception
java.io.IOException
java.nio.charset.CharacterCodingException
java.nio.charset.MalformedInputException

Thrown when a malformed input is encountered, for example, a byte sequence is illegal for the given charset.

Summary

Public Constructors

          MalformedInputException(int length)
Constructs an instance of this exception.

Public Methods

        int  getInputLength()
Gets the length of the malformed input.
        String  getMessage()
Gets a message describing this exception.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

Public Constructors

public MalformedInputException(int length)

Constructs an instance of this exception.

Parameters

length the length of the malformed input

Public Methods

public int getInputLength()

Gets the length of the malformed input.

Returns

  • the length of the malformed input

public String getMessage()

Gets a message describing this exception.

Returns

  • a message describing this exception
Build m5-rc15g - 14 May 2008 12:50