|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.util.LoggableOp
diva.util.xml.XmlWriter
Given a tree of XmlElements, an object of this class generates the equivalent XML into an output stream.
| Field Summary |
| Fields inherited from class diva.util.LoggableOp |
_verbose |
| Constructor Summary | |
XmlWriter()
|
|
| Method Summary | |
void |
setXMLVersion(java.lang.String v)
Set the XML version string. |
void |
write(XmlDocument document)
Write the given XmlDocument to its URL. |
void |
write(XmlDocument document,
java.io.Writer out)
Write the given XmlDocument to a given Writer. |
void |
write(XmlElement e,
java.io.Writer out,
java.lang.String prefix)
Deprecated. Use XmlElement.writeXML instead. |
void |
writeDTD(XmlDocument document,
java.io.Writer out)
Write the DTD of the given XmlDocument to a given Writer. |
void |
writeDTDElements(java.io.Writer out)
Produce normalised declarations for all elements. |
void |
writeDTDEntities(java.io.Writer out)
Produce normalised declarations for all general entities. |
void |
writeDTDNotations(java.io.Writer out)
Produce normalised declarations for all notations. |
| Methods inherited from class diva.util.LoggableOp |
getErrorCount, getErrorStream, getLineNumber, getWarningCount, indent, isVerbose, logError, logError, logError, logInfo, logInfo, logWarning, logWarning, logWarning, reset, setErrorStream, setVerbose, unindent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlWriter()
| Method Detail |
public void setXMLVersion(java.lang.String v)
public void write(XmlDocument document)
throws java.io.IOException
java.io.IOException
public void write(XmlDocument document,
java.io.Writer out)
throws java.io.IOException
java.io.IOException
public void write(XmlElement e,
java.io.Writer out,
java.lang.String prefix)
throws java.io.IOException
java.io.IOException
public void writeDTD(XmlDocument document,
java.io.Writer out)
throws java.io.IOException
java.io.IOException
public void writeDTDNotations(java.io.Writer out)
throws java.io.IOException
java.io.IOException
public void writeDTDEntities(java.io.Writer out)
throws java.io.IOException
java.io.IOException
public void writeDTDElements(java.io.Writer out)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||