org.apache.jasper.xmlparser
类 XMLStringBuffer

java.lang.Object
  继承者 org.apache.jasper.xmlparser.XMLString
      继承者 org.apache.jasper.xmlparser.XMLStringBuffer

public class XMLStringBuffer
extends 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().

版本:
$Id: XMLStringBuffer.java,v 1.1.4.2 2011/08/01 02:55:12 hmalphett Exp $
作者:
Andy Clark, IBM, Eric Ye, IBM

字段摘要
static int DEFAULT_SIZE
          Default buffer size (32).
 
从类 org.apache.jasper.xmlparser.XMLString 继承的字段
ch, length, offset
 
构造方法摘要
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(String s)
          Constructs a string buffer from a String.
XMLStringBuffer(XMLString s)
          Constructs a string buffer from the specified XMLString.
 
方法摘要
 void append(char c)
          append
 void append(char[] ch, int offset, int length)
          append
 void append(String s)
          append
 void append(XMLString s)
          append
 void clear()
          Clears the string buffer.
 
从类 org.apache.jasper.xmlparser.XMLString 继承的方法
equals, equals, setValues, setValues, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

DEFAULT_SIZE

public static final int DEFAULT_SIZE
Default buffer size (32).

另请参见:
常量字段值
构造方法详细信息

XMLStringBuffer

public XMLStringBuffer()

XMLStringBuffer

public XMLStringBuffer(int size)
参数:
size -

XMLStringBuffer

public XMLStringBuffer(char c)
Constructs a string buffer from a char.


XMLStringBuffer

public XMLStringBuffer(String s)
Constructs a string buffer from a String.


XMLStringBuffer

public XMLStringBuffer(char[] ch,
                       int offset,
                       int length)
Constructs a string buffer from the specified character array.


XMLStringBuffer

public XMLStringBuffer(XMLString s)
Constructs a string buffer from the specified XMLString.

方法详细信息

clear

public void clear()
Clears the string buffer.

覆盖:
XMLString 中的 clear

append

public void append(char c)
append

参数:
c -

append

public void append(String s)
append

参数:
s -

append

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

参数:
ch -
offset -
length -

append

public void append(XMLString s)
append

参数:
s -


Copyright © 2013. All Rights Reserved.