@Deprecated 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().
| Constructor and Description |
|---|
XMLStringBuffer()
Deprecated.
Build a string buffer with the default size (32).
|
XMLStringBuffer(int size)
Deprecated.
Build a string buffer with the specified size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(char c)
Deprecated.
Append character.
|
void |
append(char[] ch,
int offset,
int length)
Deprecated.
Append characters.
|
void |
append(String s)
Deprecated.
Append string.
|
void |
append(XMLString s)
Deprecated.
Append XML string
|
void |
clear()
Deprecated.
Clears the string buffer.
|
public XMLStringBuffer()
public XMLStringBuffer(int size)
size - The backing array sizepublic void append(char c)
c - The character to appendpublic void append(String s)
s - The string to appendpublic void append(char[] ch,
int offset,
int length)
ch - The character arrayoffset - The offsetlength - The lengthpublic void append(XMLString s)
s - The stringCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.