Sets the length of this string buffer. This string buffer is altered to represent a new character sequence whose length is specified by the argument. For every nonnegative index less than newLength, the character at index in the new character sequence is the same as the character at index in the old
(int newLength)
| 315 | * The newLength argument must be greater than or equal to 0. |
| 316 | */ |
| 317 | public void setLength(int newLength){ |
| 318 | internal.setLength(newLength); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Converts to a string representing the data in this string buffer. A new String object is allocated and initialized to contain the character sequence currently represented by this string buffer. This String is then returned. Subsequent changes to the string buffer do not affect the contents of the String. |
no outgoing calls