Java java.lang StringBuffer fields, constructors, methods, implement or subclass

Example usage for Java java.lang StringBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang StringBuffer.

The text is from its open source code.

Constructor

StringBuffer(int capacity)
Constructs a string buffer with no characters in it and the specified initial capacity.
StringBuffer(String str)
Constructs a string buffer initialized to the contents of the specified string.
StringBuffer(CharSequence seq)
Constructs a string buffer that contains the same characters as the specified CharSequence .
StringBuffer()
Constructs a string buffer with no characters in it and an initial capacity of 16 characters.

Method

StringBufferappend(Object obj)
StringBufferappend(String str)
StringBufferappend(StringBuffer sb)
Appends the specified StringBuffer to this sequence.
StringBufferappend(AbstractStringBuilder asb)
StringBufferappend(CharSequence s)
Appends the specified CharSequence to this sequence.
StringBufferappend(char[] str)
StringBufferappend(boolean b)
StringBufferappend(char c)
StringBufferappend(int i)
StringBufferappend(long lng)
StringBufferappend(float f)
StringBufferappend(double d)
StringBufferappend(CharSequence s, int start, int end)
StringBufferappend(char[] str, int offset, int len)
StringBufferappendCodePoint(int codePoint)
intcapacity()
charcharAt(int index)
intcodePointAt(int index)
intcodePointBefore(int index)
intcodePointCount(int beginIndex, int endIndex)
StringBufferdelete(int start, int end)
StringBufferdeleteCharAt(int index)
voidensureCapacity(int minimumCapacity)
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
voidgetChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
inthashCode()
Returns a hash code value for the object.
intindexOf(String str)
intindexOf(String str, int fromIndex)
StringBufferinsert(int offset, Object obj)
StringBufferinsert(int offset, String str)
StringBufferinsert(int offset, char[] str)
StringBufferinsert(int dstOffset, CharSequence s)
StringBufferinsert(int offset, boolean b)
StringBufferinsert(int offset, char c)
StringBufferinsert(int offset, int i)
StringBufferinsert(int offset, long l)
StringBufferinsert(int offset, float f)
StringBufferinsert(int offset, double d)
StringBufferinsert(int index, char[] str, int offset, int len)
StringBufferinsert(int dstOffset, CharSequence s, int start, int end)
intlastIndexOf(String str)
intlastIndexOf(String str, int fromIndex)
intlength()
intoffsetByCodePoints(int index, int codePointOffset)
StringBufferreplace(int start, int end, String str)
StringBufferreverse()
voidsetCharAt(int index, char ch)
voidsetLength(int newLength)
CharSequencesubSequence(int start, int end)
Stringsubstring(int start)
Stringsubstring(int start, int end)
StringtoString()
voidtrimToSize()