|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.txw2.output.TXWSerializer
public final class TXWSerializer
Dummpy implementation to pass through TypedXmlWriter
to TXW
| Field Summary | |
|---|---|
TypedXmlWriter |
txw
|
| Constructor Summary | |
|---|---|
TXWSerializer(TypedXmlWriter txw)
|
|
| Method Summary | |
|---|---|
void |
beginStartTag(String uri,
String localName,
String prefix)
Begins writing a start tag. |
void |
cdata(StringBuilder text)
Writes CDATA. |
void |
comment(StringBuilder comment)
Writes a comment. |
void |
endDocument()
The last method to be called. |
void |
endStartTag(String uri,
String localName,
String prefix)
Completes the start tag. |
void |
endTag()
Writes an end tag. |
void |
flush()
Flush the buffer. |
void |
startDocument()
The first method to be called. |
void |
text(StringBuilder text)
Writes PCDATA. |
void |
writeAttribute(String uri,
String localName,
String prefix,
StringBuilder value)
Writes an attribute. |
void |
writeXmlns(String prefix,
String uri)
Writes a namespace declaration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final TypedXmlWriter txw
| Constructor Detail |
|---|
public TXWSerializer(TypedXmlWriter txw)
| Method Detail |
|---|
public void startDocument()
XmlSerializer
startDocument in interface XmlSerializerpublic void endDocument()
XmlSerializer
endDocument in interface XmlSerializer
public void beginStartTag(String uri,
String localName,
String prefix)
XmlSerializer
beginStartTag in interface XmlSerializeruri - the namespace URI of the element. Can be empty but never be null.prefix - the prefix that should be used for this element. Can be empty,
but never null.
public void writeAttribute(String uri,
String localName,
String prefix,
StringBuilder value)
XmlSerializer
writeAttribute in interface XmlSerializeruri - the namespace URI of the attribute. Can be empty but never be null.prefix - the prefix that should be used for this attribute. Can be empty,
but never null.value - The value of the attribute. It's the callee's responsibility to
escape special characters (such as <, >, and &) in this buffer.
public void writeXmlns(String prefix,
String uri)
XmlSerializer
writeXmlns in interface XmlSerializerprefix - the prefix that is allocated. Can be empty but never be null.uri - the namespace URI to be declared. Can be empty but never be null.
public void endStartTag(String uri,
String localName,
String prefix)
XmlSerializer
endStartTag in interface XmlSerializeruri - the namespace URI of the element. Can be empty but never be null.prefix - the prefix that should be used for this element. Can be empty,
but never null.public void endTag()
XmlSerializer
endTag in interface XmlSerializerpublic void text(StringBuilder text)
XmlSerializer
text in interface XmlSerializertext - The character data to be written. It's the callee's responsibility to
escape special characters (such as <, >, and &) in this buffer.public void cdata(StringBuilder text)
XmlSerializer
cdata in interface XmlSerializerpublic void comment(StringBuilder comment)
XmlSerializer
comment in interface XmlSerializerpublic void flush()
XmlSerializerTypedXmlWriter.commit(boolean)
method. If the implementation performs any buffering, it should flush the buffer.
flush in interface XmlSerializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||