The contents of the string are managed by the string buffer. As characters are appended, the string buffer will grow as needed.
Note
Never set the ch
,
offset
, and length
fields directly.
These fields are managed by the string buffer. In order to reset
the buffer, call clear()
.
Access | Constructor and Description |
---|---|
public | |
public | |
public | |
public | |
public | XMLStringBuffer(char[] ch, int offset, int length)
Constructs a string buffer from the specified character array. |
public |
Modifier and Type | Method and Description |
---|---|
public void |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer() |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer(int size) |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer(char c) Constructs a string buffer from a char. |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer(String s) Constructs a string buffer from a String. |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer(char[] ch, int offset, int length) Constructs a string buffer from the specified character array. |
XMLStringBuffer | back to summary |
---|---|
public XMLStringBuffer(XMLString s) Constructs a string buffer from the specified XMLString. |
clear | back to summary |
---|---|
public void clear() Overrides com. Clears the string buffer. |