Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.util

public Class XMLStringBuffer

extends XMLString
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.xni.XMLString

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

Authors
Andy Clark, IBM, Eric Ye, IBM

Field Summary

Inherited from com.sun.org.apache.xerces.internal.xni.XMLString:
chDEFAULT_SIZElengthoffset

Constructor Summary

AccessConstructor and Description
public
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.

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Overrides com.sun.org.apache.xerces.internal.xni.XMLString.clear.

Clears the string buffer.

Inherited from com.sun.org.apache.xerces.internal.xni.XMLString:
appendappendappendappendequalsequalssetValuessetValuestoString

Constructor Detail

XMLStringBufferback to summary
public XMLStringBuffer()
XMLStringBufferback to summary
public XMLStringBuffer(int size)
XMLStringBufferback to summary
public XMLStringBuffer(char c)

Constructs a string buffer from a char.

XMLStringBufferback to summary
public XMLStringBuffer(String s)

Constructs a string buffer from a String.

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

Constructs a string buffer from the specified character array.

XMLStringBufferback to summary
public XMLStringBuffer(XMLString s)

Constructs a string buffer from the specified XMLString.

Method Detail

clearback to summary
public void clear()

Overrides com.sun.org.apache.xerces.internal.xni.XMLString.clear.

Clears the string buffer.