Methods Summary |
---|
public java.lang.StringBuffer | append(long l)Adds the string representation of the specified long to the end of this
StringBuffer.
return append(Long.toString(l));
|
public synchronized java.lang.StringBuffer | append(java.lang.Object obj)Adds the string representation of the specified object to the end of this
StringBuffer.
If the specified object is {@code null} the string {@code "null"} is
appended, otherwise the objects {@code toString} is used to get its
string representation.
if (obj == null) {
appendNull();
} else {
append0(obj.toString());
}
return this;
|
public synchronized java.lang.StringBuffer | append(java.lang.String string)Adds the specified string to the end of this buffer.
If the specified string is {@code null} the string {@code "null"} is
appended, otherwise the contents of the specified string is appended.
append0(string);
return this;
|
public synchronized java.lang.StringBuffer | append(java.lang.StringBuffer sb)Adds the specified StringBuffer to the end of this buffer.
If the specified StringBuffer is {@code null} the string {@code "null"}
is appended, otherwise the contents of the specified StringBuffer is
appended.
if (sb == null) {
appendNull();
} else {
synchronized (sb) {
append0(sb.getValue(), 0, sb.length());
}
}
return this;
|
public synchronized java.lang.StringBuffer | append(char[] chars)Adds the character array to the end of this buffer.
append0(chars);
return this;
|
public synchronized java.lang.StringBuffer | append(char[] chars, int start, int length)Adds the specified sequence of characters to the end of this buffer.
append0(chars, start, length);
return this;
|
public synchronized java.lang.StringBuffer | append(java.lang.CharSequence s)Appends the specified CharSequence to this buffer.
If the specified CharSequence is {@code null} the string {@code "null"}
is appended, otherwise the contents of the specified CharSequence is
appended.
if (s == null) {
appendNull();
} else {
append0(s.toString());
}
return this;
|
public synchronized java.lang.StringBuffer | append(java.lang.CharSequence s, int start, int end)Appends the specified subsequence of the CharSequence to this buffer.
If the specified CharSequence is {@code null}, then the string {@code
"null"} is used to extract a subsequence.
append0(s, start, end);
return this;
|
public java.lang.StringBuffer | append(boolean b)Adds the string representation of the specified boolean to the end of
this StringBuffer.
If the argument is {@code true} the string {@code "true"} is appended,
otherwise the string {@code "false"} is appended.
return append(b ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$
|
public synchronized java.lang.StringBuffer | append(char ch)Adds the specified character to the end of this buffer.
append0(ch);
return this;
|
public java.lang.StringBuffer | append(double d)Adds the string representation of the specified double to the end of this
StringBuffer.
return append(Double.toString(d));
|
public java.lang.StringBuffer | append(float f)Adds the string representation of the specified float to the end of this
StringBuffer.
return append(Float.toString(f));
|
public java.lang.StringBuffer | append(int i)Adds the string representation of the specified integer to the end of
this StringBuffer.
return append(Integer.toString(i));
|
public java.lang.StringBuffer | appendCodePoint(int codePoint)Appends the string representation of the specified Unicode code point to
the end of this buffer.
The code point is converted to a {@code char[]} as defined by
{@link Character#toChars(int)}.
return append(Character.toChars(codePoint));
|
public synchronized char | charAt(int index)
return super.charAt(index);
|
public synchronized int | codePointAt(int index)
return super.codePointAt(index);
|
public synchronized int | codePointBefore(int index)
return super.codePointBefore(index);
|
public synchronized int | codePointCount(int beginIndex, int endIndex)
return super.codePointCount(beginIndex, endIndex);
|
public synchronized java.lang.StringBuffer | delete(int start, int end)Deletes a range of characters.
delete0(start, end);
return this;
|
public synchronized java.lang.StringBuffer | deleteCharAt(int location)Deletes the character at the specified offset.
deleteCharAt0(location);
return this;
|
public synchronized void | ensureCapacity(int min)
super.ensureCapacity(min);
|
public synchronized void | getChars(int start, int end, char[] buffer, int idx)Copies the requested sequence of characters to the {@code char[]} passed
starting at {@code idx}.
super.getChars(start, end, buffer, idx);
|
public synchronized int | indexOf(java.lang.String subString, int start)
return super.indexOf(subString, start);
|
public synchronized java.lang.StringBuffer | insert(int index, char ch)Inserts the character into this buffer at the specified offset.
insert0(index, ch);
return this;
|
public java.lang.StringBuffer | insert(int index, boolean b)Inserts the string representation of the specified boolean into this
buffer at the specified offset.
return insert(index, b ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$
|
public java.lang.StringBuffer | insert(int index, int i)Inserts the string representation of the specified integer into this
buffer at the specified offset.
return insert(index, Integer.toString(i));
|
public java.lang.StringBuffer | insert(int index, long l)Inserts the string representation of the specified long into this buffer
at the specified offset.
return insert(index, Long.toString(l));
|
public java.lang.StringBuffer | insert(int index, double d)Inserts the string representation of the specified into this buffer
double at the specified offset.
return insert(index, Double.toString(d));
|
public java.lang.StringBuffer | insert(int index, float f)Inserts the string representation of the specified float into this buffer
at the specified offset.
return insert(index, Float.toString(f));
|
public java.lang.StringBuffer | insert(int index, java.lang.Object obj)Inserts the string representation of the specified object into this
buffer at the specified offset.
If the specified object is {@code null}, the string {@code "null"} is
inserted, otherwise the objects {@code toString} method is used to get
its string representation.
return insert(index, obj == null ? "null" : obj.toString()); //$NON-NLS-1$
|
public synchronized java.lang.StringBuffer | insert(int index, java.lang.String string)Inserts the string into this buffer at the specified offset.
If the specified string is {@code null}, the string {@code "null"} is
inserted, otherwise the contents of the string is inserted.
insert0(index, string);
return this;
|
public synchronized java.lang.StringBuffer | insert(int index, char[] chars)Inserts the character array into this buffer at the specified offset.
insert0(index, chars);
return this;
|
public synchronized java.lang.StringBuffer | insert(int index, char[] chars, int start, int length)Inserts the specified subsequence of characters into this buffer at the
specified index.
insert0(index, chars, start, length);
return this;
|
public synchronized java.lang.StringBuffer | insert(int index, java.lang.CharSequence s)Inserts the specified CharSequence into this buffer at the specified
index.
If the specified CharSequence is {@code null}, the string {@code "null"}
is inserted, otherwise the contents of the CharSequence.
insert0(index, s == null ? "null" : s.toString()); //$NON-NLS-1$
return this;
|
public synchronized java.lang.StringBuffer | insert(int index, java.lang.CharSequence s, int start, int end)Inserts the specified subsequence into this buffer at the specified
index.
If the specified CharSequence is {@code null}, the string {@code "null"}
is inserted, otherwise the contents of the CharSequence.
insert0(index, s, start, end);
return this;
|
public synchronized int | lastIndexOf(java.lang.String subString, int start)
return super.lastIndexOf(subString, start);
|
public synchronized int | offsetByCodePoints(int index, int codePointOffset)
return super.offsetByCodePoints(index, codePointOffset);
|
private void | readObject(java.io.ObjectInputStream in)
ObjectInputStream.GetField fields = in.readFields();
int count = fields.get("count", 0); //$NON-NLS-1$
char[] value = (char[]) fields.get("value", null); //$NON-NLS-1$
set(value, count);
|
public synchronized java.lang.StringBuffer | replace(int start, int end, java.lang.String string)Replaces the characters in the specified range with the contents of the
specified string.
replace0(start, end, string);
return this;
|
public synchronized java.lang.StringBuffer | reverse()Reverses the order of characters in this buffer.
reverse0();
return this;
|
public synchronized void | setCharAt(int index, char ch)
super.setCharAt(index, ch);
|
public synchronized void | setLength(int length)
super.setLength(length);
|
public synchronized java.lang.CharSequence | subSequence(int start, int end)
return super.substring(start, end);
|
public synchronized java.lang.String | substring(int start)
return super.substring(start);
|
public synchronized java.lang.String | substring(int start, int end)
return super.substring(start, end);
|
public synchronized java.lang.String | toString()
return super.toString();
|
public synchronized void | trimToSize()
super.trimToSize();
|
private synchronized void | writeObject(java.io.ObjectOutputStream out)
ObjectOutputStream.PutField fields = out.putFields();
fields.put("count", length()); //$NON-NLS-1$
fields.put("shared", false); //$NON-NLS-1$
fields.put("value", getValue()); //$NON-NLS-1$
out.writeFields();
|