public class

XMLStringBuffer

extends XMLString
java.lang.Object
   ↳ org.apache.xerces.xni.XMLString
     ↳ org.apache.xerces.util.XMLStringBuffer

Class Overview

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().

Summary

Constants
int DEFAULT_SIZE Default buffer size (32).
[Expand]
Inherited Fields
From class org.apache.xerces.xni.XMLString
Public Constructors
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.
Public Methods
void append(char[] ch, int offset, int length)
append
void append(String s)
append
void append(XMLString s)
append
void append(char c)
append
void clear()
Clears the string buffer.
[Expand]
Inherited Methods
From class org.apache.xerces.xni.XMLString
From class java.lang.Object

Constants

public static final int DEFAULT_SIZE

Default buffer size (32).

Constant Value: 32 (0x00000020)

Public Constructors

public XMLStringBuffer ()

public XMLStringBuffer (int size)

public XMLStringBuffer (char c)

Constructs a string buffer from a char.

public XMLStringBuffer (String s)

Constructs a string buffer from a String.

public XMLStringBuffer (char[] ch, int offset, int length)

Constructs a string buffer from the specified character array.

public XMLStringBuffer (XMLString s)

Constructs a string buffer from the specified XMLString.

Public Methods

public void append (char[] ch, int offset, int length)

append

public void append (String s)

append

public void append (XMLString s)

append

public void append (char c)

append

public void clear ()

Clears the string buffer.