|
|||||||||
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
public class 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(String v)
Set the XML version string. |
void |
write(XmlDocument document)
Write the given XmlDocument to its URL. |
void |
write(XmlDocument document,
Writer out)
Write the given XmlDocument to a given Writer. |
void |
write(XmlElement e,
Writer out,
String prefix)
Deprecated. Use XmlElement.writeXML instead. |
void |
writeDTD(XmlDocument document,
Writer out)
Write the DTD of the given XmlDocument to a given Writer. |
void |
writeDTDElements(Writer out)
Produce normalised declarations for all elements. |
void |
writeDTDEntities(Writer out)
Produce normalised declarations for all general entities. |
void |
writeDTDNotations(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(String v)
public void write(XmlDocument document) throws IOException
IOException
public void write(XmlDocument document, Writer out) throws IOException
IOException
public void write(XmlElement e, Writer out, String prefix) throws IOException
IOException
public void writeDTD(XmlDocument document, Writer out) throws IOException
IOException
public void writeDTDNotations(Writer out) throws IOException
IOException
makeExternalIdentifiers(java.lang.String, java.lang.String)
public void writeDTDEntities(Writer out) throws IOException
IOException
makeLiteral(java.lang.String)
,
makeExternalIdentifiers(java.lang.String, java.lang.String)
public void writeDTDElements(Writer out) throws IOException
IOException
writeDTDAttributes(java.lang.String, java.io.Writer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |