Build 1.0_r1(from source)

java.nio.charset
Class MalformedInputException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.nio.charset.CharacterCodingException
                  extended by 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

Constructor Summary
MalformedInputException(int length)
          Constructs an instance of this exception.
 
Method Summary
 int getInputLength()
          Gets the length of the malformed input.
 String getMessage()
          Gets a message describing this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MalformedInputException

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

Parameters:
length - the length of the malformed input
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature