Android
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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56