看源代码- -!以下摘自源代码:- public synchronized void getChars(int srcBegin, int srcEnd, char[] dst,
- int dstBegin)
- {
- super.getChars(srcBegin, srcEnd, dst, dstBegin);
- }
- /**
- * @throws IndexOutOfBoundsException {@inheritDoc}
- * @see #length()
- */
- public synchronized void setCharAt(int index, char ch) {
- if ((index < 0) || (index >= count))
- throw new StringIndexOutOfBoundsException(index);
- value[index] = ch;
- }
- public synchronized StringBuffer append(Object obj) {
- super.append(String.valueOf(obj));
- return this;
- }
- public synchronized StringBuffer append(String str) {
- super.append(str);
- return this;
- }
复制代码 |