public class XMLStringBuffer
extends org.apache.xerces.xni.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 | Description |
|---|---|---|
static int |
DEFAULT_SIZE |
Default buffer size (32).
|
| Constructor | Description |
|---|---|
XMLStringBuffer() |
|
XMLStringBuffer(char c) |
Constructs a string buffer from a char.
|
XMLStringBuffer(char[] ch,
int offset,
int length) |
Constructs a string buffer from the specified character array.
|
XMLStringBuffer(int size) |
|
XMLStringBuffer(java.lang.String s) |
Constructs a string buffer from a String.
|
XMLStringBuffer(org.apache.xerces.xni.XMLString s) |
Constructs a string buffer from the specified XMLString.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
append(char c) |
append
|
void |
append(char[] ch,
int offset,
int length) |
append
|
void |
append(java.lang.String s) |
append
|
void |
append(org.apache.xerces.xni.XMLString s) |
append
|
void |
clear() |
Clears the string buffer.
|
public static final int DEFAULT_SIZE
public XMLStringBuffer()
public XMLStringBuffer(int size)
size - public XMLStringBuffer(char c)
public XMLStringBuffer(java.lang.String s)
public XMLStringBuffer(char[] ch,
int offset,
int length)
public XMLStringBuffer(org.apache.xerces.xni.XMLString s)
public void clear()
clear in class org.apache.xerces.xni.XMLStringpublic void append(char c)
c - public void append(java.lang.String s)
s - public void append(char[] ch,
int offset,
int length)
ch - offset - length - public void append(org.apache.xerces.xni.XMLString s)
s - Copyright ? 1999-2010 The Apache Software Foundation. All Rights Reserved.