|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.generationjava.io.xml.DelegatingXmlWriter
public class DelegatingXmlWriter
Superclass for any XmlWriter which will wrap another XmlWriter. It passes all calls on to the underlying XmlWriter, and is expected to be used by all filtering XmlWriters. Possibly this class should be abstract.
| Constructor Summary | |
|---|---|
DelegatingXmlWriter(XmlWriter xmlWriter)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingXmlWriter(XmlWriter xmlWriter)
| Method Detail |
|---|
public XmlWriter writeXmlVersion()
throws IOException
writeXmlVersion in interface XmlWriterIOException
public XmlWriter writeXmlVersion(String version,
String encoding)
throws IOException
writeXmlVersion in interface XmlWriterIOExceptionDelegatingXmlWriter.writeXmlVersion(String, String, String)
public XmlWriter writeXmlVersion(String version,
String encoding,
String standalone)
throws IOException
writeXmlVersion in interface XmlWriterIOException
public XmlWriter writeEntityWithText(String name,
Object text)
throws IOException
writeEntityWithText in interface XmlWritername - String name of tagtext - String of text to go inside the tag
IOException
public XmlWriter writeEmptyEntity(String name)
throws IOException
writeEmptyEntity in interface XmlWritername - String name of tag
IOException
public XmlWriter writeEntity(String name)
throws IOException
writeEntity in interface XmlWritername - String name of tag
IOException
public XmlWriter writeAttribute(String attr,
Object value)
throws IOException
writeAttribute in interface XmlWriterString - name of attribute.Object - value of attribute.
IOException
public XmlWriter endEntity()
throws IOException
endEntity in interface XmlWriterIOException
public void close()
throws IOException
close in interface XmlWriterIOException
public XmlWriter writeText(Object text)
throws IOException
writeText in interface XmlWriterIOException
public XmlWriter writeCData(String cdata)
throws IOException
writeCData in interface XmlWriterString - of CDATA text.
IOException
public XmlWriter writeComment(String comment)
throws IOException
writeComment in interface XmlWriterString - of text to comment.
IOExceptionpublic Writer getWriter()
XmlWriter
getWriter in interface XmlWriter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||