|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.generationjava.io.xml.DelegatingXmlWriter
|
+--com.generationjava.io.xml.FormattingXmlWriter
| Constructor Summary | |
FormattingXmlWriter(XmlWriter writer)
|
|
| Method Summary | |
protected java.lang.String |
format(java.lang.Object unknown)
|
FormattingXmlWriter |
setDateFormat(java.text.DateFormat format)
When a java.util.Date object is written, it will use this to format it. |
FormattingXmlWriter |
setNumberFormat(java.text.NumberFormat format)
When a Number object is written, it will use this to format it. |
XmlWriter |
writeAttribute(java.lang.String name,
java.lang.Object value)
Write an attribute out for the current entity. |
XmlWriter |
writeEntityWithText(java.lang.String name,
java.lang.Object text)
A helper method. |
XmlWriter |
writeText(java.lang.Object text)
Output body text. |
| Methods inherited from class com.generationjava.io.xml.DelegatingXmlWriter |
close, endEntity, getWriter, writeCData, writeComment, writeEmptyEntity, writeEntity, writeXmlVersion, writeXmlVersion, writeXmlVersion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FormattingXmlWriter(XmlWriter writer)
throws java.io.IOException
| Method Detail |
public FormattingXmlWriter setNumberFormat(java.text.NumberFormat format)
public FormattingXmlWriter setDateFormat(java.text.DateFormat format)
public XmlWriter writeEntityWithText(java.lang.String name,
java.lang.Object text)
throws java.io.IOException
DelegatingXmlWriter
writeEntityWithText in interface XmlWriterwriteEntityWithText in class DelegatingXmlWritername - String name of tagtext - String of text to go inside the tag
java.io.IOException
public XmlWriter writeText(java.lang.Object text)
throws java.io.IOException
DelegatingXmlWriter
writeText in interface XmlWriterwriteText in class DelegatingXmlWriterjava.io.IOException
public XmlWriter writeAttribute(java.lang.String name,
java.lang.Object value)
throws java.io.IOException
DelegatingXmlWriter
writeAttribute in interface XmlWriterwriteAttribute in class DelegatingXmlWriterjava.io.IOExceptionprotected java.lang.String format(java.lang.Object unknown)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||