Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 152-163
Link Here
|
152 |
* Returns the given range of text in this buffer. |
152 |
* Returns the given range of text in this buffer. |
153 |
* <p> |
153 |
* <p> |
154 |
* The returned value is undefined if the buffer is closed. |
154 |
* The returned value is undefined if the buffer is closed. |
|
|
155 |
* </p> |
155 |
* |
156 |
* |
156 |
* @param offset the zero-based starting offset |
157 |
* @param offset the zero-based starting offset |
157 |
* @param length the number of characters to retrieve |
158 |
* @param length the number of characters to retrieve |
158 |
* @return the given range of text in this buffer |
159 |
* @return the given range of text in this buffer |
|
|
160 |
* @exception IndexOutOfBoundsException when buffer is out of synch |
159 |
*/ |
161 |
*/ |
160 |
public String getText(int offset, int length); |
162 |
public String getText(int offset, int length) throws IndexOutOfBoundsException; |
161 |
/** |
163 |
/** |
162 |
* Returns the underlying resource for which this buffer was opened, |
164 |
* Returns the underlying resource for which this buffer was opened, |
163 |
* or <code>null</code> if this buffer was not opened on a resource. |
165 |
* or <code>null</code> if this buffer was not opened on a resource. |