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

Since:
1.4
See Also:
Serialized Form

Constructor Summary
MalformedInputException(int inputLength)
          Creates the exception
 
Method Summary
 int getInputLength()
          Retrieves the position of the malformed input in the input stream.
 String getMessage()
          Returns the detail message string of this throwable
 
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 inputLength)
Creates the exception

Parameters:
inputLength - the position of malformed input in the input stream
Method Detail

getInputLength

public int getInputLength()
Retrieves the position of the malformed input in the input stream.

Returns:
the position

getMessage

public String getMessage()
Returns the detail message string of this throwable

Overrides:
getMessage in class Throwable
Returns:
the message