|
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.catalina.util.XMLWriter
public class XMLWriter
XMLWriter helper class.
Field Summary | |
---|---|
protected java.lang.StringBuffer |
buffer
Buffer. |
static int |
CLOSING
Closing tag. |
static int |
NO_CONTENT
Element with no content. |
static int |
OPENING
Opening tag. |
protected java.io.Writer |
writer
Writer. |
Constructor Summary | |
---|---|
XMLWriter()
Constructor. |
|
XMLWriter(java.io.Writer writer)
Constructor. |
Method Summary | |
---|---|
void |
sendData()
Send data and reinitializes buffer. |
java.lang.String |
toString()
Retrieve generated XML. |
void |
writeData(java.lang.String data)
Write data. |
void |
writeElement(java.lang.String namespace,
java.lang.String name,
int type)
Write an element. |
void |
writeElement(java.lang.String namespace,
java.lang.String namespaceInfo,
java.lang.String name,
int type)
Write an element. |
void |
writeProperty(java.lang.String namespace,
java.lang.String name)
Write property to the XML. |
void |
writeProperty(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
Write property to the XML. |
void |
writeProperty(java.lang.String namespace,
java.lang.String namespaceInfo,
java.lang.String name,
java.lang.String value)
Write property to the XML. |
void |
writeText(java.lang.String text)
Write text. |
void |
writeXMLHeader()
Write XML Header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OPENING
public static final int CLOSING
public static final int NO_CONTENT
protected java.lang.StringBuffer buffer
protected java.io.Writer writer
Constructor Detail |
---|
public XMLWriter()
public XMLWriter(java.io.Writer writer)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void writeProperty(java.lang.String namespace, java.lang.String namespaceInfo, java.lang.String name, java.lang.String value)
namespace
- NamespacenamespaceInfo
- Namespace infoname
- Property namevalue
- Property valuepublic void writeProperty(java.lang.String namespace, java.lang.String name, java.lang.String value)
namespace
- Namespacename
- Property namevalue
- Property valuepublic void writeProperty(java.lang.String namespace, java.lang.String name)
namespace
- Namespacename
- Property namepublic void writeElement(java.lang.String namespace, java.lang.String name, int type)
name
- Element namenamespace
- Namespace abbreviationtype
- Element typepublic void writeElement(java.lang.String namespace, java.lang.String namespaceInfo, java.lang.String name, int type)
namespace
- Namespace abbreviationnamespaceInfo
- Namespace infoname
- Element nametype
- Element typepublic void writeText(java.lang.String text)
text
- Text to appendpublic void writeData(java.lang.String data)
data
- Data to appendpublic void writeXMLHeader()
public void sendData() throws java.io.IOException
java.io.IOException
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |