com.drew.lang
Class BufferBoundsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.drew.lang.BufferBoundsException
All Implemented Interfaces:
Serializable

public final class BufferBoundsException
extends Exception

A checked replacement for IndexOutOfBoundsException. Used by BufferReader.

Author:
Drew Noakes http://drewnoakes.com
See Also:
Serialized Form

Constructor Summary
BufferBoundsException(byte[] buffer, int index, int bytesRequested)
           
BufferBoundsException(String message)
           
BufferBoundsException(String message, IOException innerException)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

BufferBoundsException

public BufferBoundsException(byte[] buffer,
                             int index,
                             int bytesRequested)

BufferBoundsException

public BufferBoundsException(String message)

BufferBoundsException

public BufferBoundsException(String message,
                             IOException innerException)


Copyright © 2012. All Rights Reserved.