|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jasper.xmlparser.XMLString org.apache.jasper.xmlparser.XMLStringBuffer
public class 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 | |
---|---|
static int |
DEFAULT_SIZE
Default buffer size (32). |
Fields inherited from class org.apache.jasper.xmlparser.XMLString |
---|
ch, length, offset |
Constructor Summary | |
---|---|
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(java.lang.String s)
Constructs a string buffer from a String. |
|
XMLStringBuffer(XMLString s)
Constructs a string buffer from the specified XMLString. |
Method Summary | |
---|---|
void |
append(char c)
append |
void |
append(char[] ch,
int offset,
int length)
append |
void |
append(java.lang.String s)
append |
void |
append(XMLString s)
append |
void |
clear()
Clears the string buffer. |
Methods inherited from class org.apache.jasper.xmlparser.XMLString |
---|
equals, equals, setValues, setValues, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_SIZE
Constructor Detail |
---|
public XMLStringBuffer()
public XMLStringBuffer(int size)
size
- public XMLStringBuffer(char c)
public XMLStringBuffer(java.lang.String s)
public XMLStringBuffer(char[] ch, int offset, int length)
public XMLStringBuffer(XMLString s)
Method Detail |
---|
public void clear()
clear
in class XMLString
public void append(char c)
c
- public void append(java.lang.String s)
s
- public void append(char[] ch, int offset, int length)
ch
- offset
- length
- public void append(XMLString s)
s
-
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |