org.apache.xerces.util
public class XMLStringBuffer extends XMLString
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().
Version: $Id: XMLStringBuffer.java,v 1.6 2004/02/24 23:15:53 mrglavas Exp $
| Field Summary | |
|---|---|
| static int | DEFAULT_SIZE Default buffer size (32). |
| Constructor Summary | |
|---|---|
| XMLStringBuffer() | |
| XMLStringBuffer(int size) | |
| XMLStringBuffer(char c) Constructs a string buffer from a char. | |
| XMLStringBuffer(String s) Constructs a string buffer from a String. | |
| XMLStringBuffer(char[] ch, int offset, int length) Constructs a string buffer from the specified character array. | |
| XMLStringBuffer(XMLString s) Constructs a string buffer from the specified XMLString. | |
| Method Summary | |
|---|---|
| void | append(char c)
append
|
| void | append(String s)
append
|
| void | append(char[] ch, int offset, int length)
append
|
| void | append(XMLString s)
append
|
| void | clear() Clears the string buffer. |
Parameters: size
Parameters: c
Parameters: s
Parameters: ch offset length
Parameters: s