| java.lang.Object org.apache.xerces.xni.XMLString org.apache.xerces.util.XMLStringBuffer
XMLStringBuffer | public class XMLStringBuffer extends XMLString (Code) | | XMLString is a structure used to pass character arrays. However,
XMLStringBuffer is a buffer in which characters can be appended
and extends XMLString so that it can be passed to methods
expecting an XMLString object. This is a safe operation because
it is assumed that any callee will not modify
the contents of the XMLString structure.
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() .
author: Andy Clark, IBM author: Eric Ye, IBM version: $Id: XMLStringBuffer.java 447241 2006-09-18 05:12:57Z mrglavas $ |
Field Summary | |
final public static int | DEFAULT_SIZE Default buffer size (32). |
DEFAULT_SIZE | final public static int DEFAULT_SIZE(Code) | | Default buffer size (32).
|
XMLStringBuffer | public XMLStringBuffer()(Code) | | |
XMLStringBuffer | public XMLStringBuffer(int size)(Code) | | Parameters: size - |
XMLStringBuffer | public XMLStringBuffer(char c)(Code) | | Constructs a string buffer from a char.
|
XMLStringBuffer | public XMLStringBuffer(String s)(Code) | | Constructs a string buffer from a String.
|
XMLStringBuffer | public XMLStringBuffer(char[] ch, int offset, int length)(Code) | | Constructs a string buffer from the specified character array.
|
XMLStringBuffer | public XMLStringBuffer(XMLString s)(Code) | | Constructs a string buffer from the specified XMLString.
|
append | public void append(char c)(Code) | | append
Parameters: c - |
append | public void append(String s)(Code) | | append
Parameters: s - |
append | public void append(char[] ch, int offset, int length)(Code) | | append
Parameters: ch - Parameters: offset - Parameters: length - |
clear | public void clear()(Code) | | Clears the string buffer.
|
|
|