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().
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE
Default buffer size (32).
|
| Constructor and Description |
|---|
XMLStringBuffer() |
XMLStringBuffer(int size) |
XMLStringBuffer(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(char c)
append
|
void |
append(char[] ch,
int offset,
int length)
append
|
void |
append(String s)
append
|
void |
append(XMLString s)
append
|
void |
clear()
Clears the string buffer.
|
public static final int DEFAULT_SIZE
public XMLStringBuffer()
public XMLStringBuffer(int size)
public XMLStringBuffer(String s)
public void append(char c)
c - thechar to appendpublic void append(String s)
s - the string to appendpublic void append(char[] ch,
int offset,
int length)
ch - char arrayoffset - startlength - lengthpublic void append(XMLString s)
s - xmlstringCopyright © 2023 Gargoyle Software Inc.. All rights reserved.