Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » xmlparser » [javadoc | source]
org.apache.jasper.xmlparser
public class: XMLStringBuffer [javadoc | source]
java.lang.Object
   org.apache.jasper.xmlparser.XMLString
      org.apache.jasper.xmlparser.XMLStringBuffer
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().

Field Summary
public static final  int DEFAULT_SIZE    Default buffer size (32). 
Fields inherited from org.apache.jasper.xmlparser.XMLString:
ch,  offset,  length
Constructor:
 public XMLStringBuffer() 
 public XMLStringBuffer(int size) 
 public XMLStringBuffer(char c) 
 public XMLStringBuffer(String s) 
    Constructs a string buffer from a String.
 public XMLStringBuffer(XMLString s) 
    Constructs a string buffer from the specified XMLString.
 public XMLStringBuffer(char[] ch,
    int offset,
    int length) 
Method from org.apache.jasper.xmlparser.XMLStringBuffer Summary:
append,   append,   append,   append,   clear
Methods from org.apache.jasper.xmlparser.XMLString:
clear,   equals,   equals,   setValues,   setValues,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.xmlparser.XMLStringBuffer Detail:
 public  void append(char c) 
    append
 public  void append(String s) 
    append
 public  void append(XMLString s) 
    append
 public  void append(char[] ch,
    int offset,
    int length) 
    append
 public  void clear() 
    Clears the string buffer.