Examples of ExtIndexOutOfBoundsException


Examples of de.susebox.java.lang.ExtIndexOutOfBoundsException

   *          not in the available text range (text window)
   * @see     #setReadPositionRelative
   */
  public void setReadPositionAbsolute(int position) throws IndexOutOfBoundsException {
    if (position < getRangeStart()) {
      throw new ExtIndexOutOfBoundsException(
                  "Invalid read position {0} below the current text window start {1}.",
                  new Object[] { new Integer(position), new Integer(getRangeStart()) }
                );
    } else if (position > _currentWritePos) {
      throw new ExtIndexOutOfBoundsException(
                  "Invalid read position {0} at or above the current text window end {1}.",
                  new Object[] { new Integer(position), new Integer(currentlyAvailable() + getRangeStart()) }
                );
    }
    _currentReadPos = position;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.