* 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;