|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XmlWriter
Interface for anything which is able to output Xml. Implementations of this interface are expected to either be filters on other XmlWriters, ie) subclasses of DelegatingXmlWriter, or actual outputters themselves, ie) subclasses of AbstractXmlWriter.
| Method Summary | |
|---|---|
void |
close()
Close this writer. |
XmlWriter |
endEntity()
End the current entity. |
Writer |
getWriter()
Obtain the Writer that is at the lowest level of this XmlWriter chain |
XmlWriter |
writeAttribute(String attr,
Object value)
Write an attribute out for the current entity. |
XmlWriter |
writeCData(String cdata)
Write out a chunk of CDATA. |
XmlWriter |
writeComment(String comment)
Write out a chunk of comment. |
XmlWriter |
writeEmptyEntity(String name)
A helper method. |
XmlWriter |
writeEntity(String name)
Begin to write out an entity. |
XmlWriter |
writeEntityWithText(String name,
Object text)
A helper method. |
XmlWriter |
writeText(Object text)
Output body text. |
XmlWriter |
writeXmlVersion()
Makes it easy to output the xml version if such a thing is desired. |
XmlWriter |
writeXmlVersion(String version,
String encoding)
|
XmlWriter |
writeXmlVersion(String version,
String encoding,
String standalone)
Output the version, encoding and standalone nature of an xml file. |
| Method Detail |
|---|
XmlWriter writeXmlVersion()
throws IOException
IOException
XmlWriter writeXmlVersion(String version,
String encoding)
throws IOException
IOExceptionXmlWriter.writeXmlVersion(String, String, String)
XmlWriter writeXmlVersion(String version,
String encoding,
String standalone)
throws IOException
IOException
XmlWriter writeEntityWithText(String name,
Object text)
throws IOException
name - String name of tagtext - String of text to go inside the tag
IOException
XmlWriter writeEmptyEntity(String name)
throws IOException
name - String name of tag
IOException
XmlWriter writeEntity(String name)
throws IOException
name - String name of tag
IOException
XmlWriter writeAttribute(String attr,
Object value)
throws IOException
String - name of attribute.Object - value of attribute.
IOException
XmlWriter endEntity()
throws IOException
IOException
void close()
throws IOException
IOException
XmlWriter writeText(Object text)
throws IOException
IOException
XmlWriter writeCData(String cdata)
throws IOException
String - of CDATA text.
IOException
XmlWriter writeComment(String comment)
throws IOException
String - of text to comment.
IOExceptionWriter getWriter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||