public interface IXmlWriter
Modifier and Type | Method and Description |
---|---|
void |
createNew(java.lang.Object out)
Create a new instance of an XML writer, able to write to out.
|
void |
flush()
Write any cached data to the underlying output mechanism.
|
java.lang.String |
getWriterName()
Gets the name of the XmlWriter.
|
boolean |
isShouldWriteAllPorts()
Whether or not to write an attribute with the name "AllPorts".
|
boolean |
isShouldWriteVal()
Whether or not to write an attribute with the name "Val".
|
void |
setShouldWriteAllPorts(boolean shouldWriteAllPorts)
Whether or not to write an attribute with the name "AllPorts".
|
void |
setShouldWriteVal(boolean shouldWriteVal)
Whether or not to write an attribute with the name "Val".
|
void |
writeAttribute(java.lang.String name,
java.lang.String value)
Writes an attribute to the output stream.
|
void |
writeComment(java.lang.String data)
Writes an xml comment.
|
void |
writeEndDocument()
Closes any start tags and writes corresponding end tags.
|
void |
writeEndElement(java.lang.String name)
Writes an end tag to the output.
|
void |
writeEndElement(java.lang.String name,
java.lang.String namespaceURI)
Writes an end tag to the output.
|
void |
writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Writes a namespace to the output stream.
|
void |
writeStartDocument()
Write the XML Declaration.
|
void |
writeStartElement(java.lang.String name)
Writes a start tag to the output.
|
void |
writeStartElement(java.lang.String prefix,
java.lang.String localName,
java.lang.String namespaceURI)
Writes a start tag to the output
|
void |
writeText(java.lang.String text)
Write text to the output.
|
void createNew(java.lang.Object out)
out
- An output file, stream, string, or other type of writer.
This must be an instance of java.io.Writer.void writeStartDocument()
void writeEndDocument()
void writeStartElement(java.lang.String prefix, java.lang.String localName, java.lang.String namespaceURI)
localName
- local name of the tag, may not be nullprefix
- the prefix of the tag, may not be nullnamespaceURI
- the uri to bind the prefix to, may not be nullvoid writeStartElement(java.lang.String name)
name
- void writeEndElement(java.lang.String name, java.lang.String namespaceURI)
name
- namespaceURI
- void writeEndElement(java.lang.String name)
name
- void writeNamespace(java.lang.String prefix, java.lang.String namespaceURI)
prefix
- the prefix to bind this namespace tonamespaceURI
- the uri to bind the prefix tovoid writeAttribute(java.lang.String name, java.lang.String value)
name
- value
- void writeText(java.lang.String text)
text
- void writeComment(java.lang.String data)
data
- java.lang.String getWriterName()
void flush()
boolean isShouldWriteVal()
void setShouldWriteVal(boolean shouldWriteVal)
boolean isShouldWriteAllPorts()
void setShouldWriteAllPorts(boolean shouldWriteAllPorts)