|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.StringBuffer
public class StringBuffer
| Constructor Summary | |
|---|---|
StringBuffer()
A flag indicating whether the buffer is shared |
|
StringBuffer(int length)
Constructs a string buffer with no characters in it and an initial capacity specified by the length argument. |
|
StringBuffer(String str)
Constructs a string buffer so that it represents the same sequence of characters as the string argument; in other words, the initial contents of the string buffer is a copy of the argument string. |
|
| Method Summary | |
|---|---|
StringBuffer |
append(char c)
|
StringBuffer |
append(char[] str,
int offset,
int len)
|
StringBuffer |
append(int i)
|
StringBuffer |
append(Object obj)
|
StringBuffer |
append(String str)
|
int |
length()
Returns the length (character count) of this string buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, println, toString |
| Constructor Detail |
|---|
public StringBuffer()
public StringBuffer(int length)
length argument.
length - the initial capacity.
NegativeArraySizeException - if the length
argument is less than 0.public StringBuffer(String str)
16 plus the length of the string argument.
str - the initial contents of the buffer.
NullPointerException - if str is null| Method Detail |
|---|
public int length()
public StringBuffer append(Object obj)
public StringBuffer append(int i)
public StringBuffer append(String str)
public StringBuffer append(char c)
public StringBuffer append(char[] str,
int offset,
int len)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||