to.etc.webapp.ajax.renderer.xml
Class XMLStructuredWriter
java.lang.Object
java.io.Writer
to.etc.webapp.ajax.renderer.StructuredWriter
to.etc.webapp.ajax.renderer.xml.XMLStructuredWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class XMLStructuredWriter
- extends StructuredWriter
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
close()
|
void |
end()
|
void |
field(java.lang.String name,
boolean value)
|
void |
field(java.lang.String name,
java.util.Date value)
|
void |
field(java.lang.String name,
java.lang.Number value)
|
void |
field(java.lang.String name,
java.lang.String value)
Only allowed in a record. |
void |
flush()
|
void |
list(java.lang.String name)
Starts a list. |
void |
record(java.lang.String name)
Starts a record. |
XmlWriter |
xw()
|
Methods inherited from class java.io.Writer |
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLStructuredWriter
public XMLStructuredWriter(XmlRenderer r)
xw
public XmlWriter xw()
end
public void end()
throws java.io.IOException
- Specified by:
end
in class StructuredWriter
- Throws:
java.io.IOException
field
public void field(java.lang.String name,
java.lang.String value)
throws java.lang.Exception
- Only allowed in a record.
- Specified by:
field
in class StructuredWriter
- Throws:
java.lang.Exception
- See Also:
StructuredWriter.field(java.lang.String, java.lang.String)
field
public void field(java.lang.String name,
boolean value)
throws java.lang.Exception
- Specified by:
field
in class StructuredWriter
- Throws:
java.lang.Exception
field
public void field(java.lang.String name,
java.util.Date value)
throws java.lang.Exception
- Specified by:
field
in class StructuredWriter
- Throws:
java.lang.Exception
field
public void field(java.lang.String name,
java.lang.Number value)
throws java.lang.Exception
- Specified by:
field
in class StructuredWriter
- Throws:
java.lang.Exception
list
public void list(java.lang.String name)
throws java.lang.Exception
- Starts a list. The list is simply a tag with the specified name.
- Specified by:
list
in class StructuredWriter
- Throws:
java.lang.Exception
- See Also:
StructuredWriter.list(java.lang.String)
record
public void record(java.lang.String name)
throws java.lang.Exception
- Starts a record. Yes, another tag.
- Specified by:
record
in class StructuredWriter
- Throws:
java.lang.Exception
- See Also:
StructuredWriter.record(java.lang.String)
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in class java.io.Writer
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface java.io.Flushable
- Specified by:
flush
in class java.io.Writer
- Throws:
java.io.IOException