Java.Lang.StringBuffer Class
A modifiable Java.Lang.ICharSequence for use in creating strings, where all accesses are synchronized.

See Also: StringBuffer Members

Syntax

[Android.Runtime.Register("java/lang/StringBuffer", DoNotGenerateAcw=true)]
public sealed class StringBuffer : AbstractStringBuilder, Java.IO.ISerializable, IEnumerable<char>, IDisposable

Remarks

A modifiable Java.Lang.ICharSequence for use in creating strings, where all accesses are synchronized. This class has mostly been replaced by Java.Lang.StringBuilder because this synchronization is rarely useful. This class is mainly used to interact with legacy APIs that expose it.

For particularly complex string-building needs, consider Java.Util.Formatter.

The majority of the modification methods on this class return this so that method calls can be chained together. For example: new StringBuffer("a").append("b").append("c").toString().

See Also

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1