Package dev.pxml.core.writer
Class PXMLWriter
- java.lang.Object
-
- dev.pxml.core.writer.PXMLWriter
-
- All Implemented Interfaces:
IPXMLWriter
public class PXMLWriter extends java.lang.Object implements IPXMLWriter
-
-
Constructor Summary
Constructors Constructor Description PXMLWriter(java.io.Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
void
escapeAndWriteText(java.lang.String text)
void
flush()
void
startDocument()
void
write(java.lang.String string)
void
writeAttribute(java.lang.String nameSpacePrefix, java.lang.String localName, java.lang.String value, boolean appendAttributesSeparator)
void
writeAttributesEnd()
void
writeAttributesStart()
void
writeComment(java.lang.String text)
void
writeDoubleQuotedAttributeValue(java.lang.String value)
void
writeEmptyNode(java.lang.String nameSpacePrefix, java.lang.String localName)
void
writeNodeEndSymbol()
void
writeNodeEndTag(java.lang.String nameSpacePrefix, java.lang.String localName)
void
writeNodeStart(java.lang.String nameSpacePrefix, java.lang.String localName, boolean appendNameValueSeparator)
void
writeNonEmptyNodeStart(java.lang.String nameSpacePrefix, java.lang.String localName)
void
writeTextNode(java.lang.String nameSpacePrefix, java.lang.String localName, java.lang.String text)
-
-
-
Method Detail
-
write
public void write(java.lang.String string) throws java.io.IOException
- Specified by:
write
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
startDocument
public void startDocument()
- Specified by:
startDocument
in interfaceIPXMLWriter
-
endDocument
public void endDocument() throws java.io.IOException
- Specified by:
endDocument
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeNonEmptyNodeStart
public void writeNonEmptyNodeStart(java.lang.String nameSpacePrefix, java.lang.String localName) throws java.io.IOException
- Specified by:
writeNonEmptyNodeStart
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeNodeStart
public void writeNodeStart(java.lang.String nameSpacePrefix, java.lang.String localName, boolean appendNameValueSeparator) throws java.io.IOException
- Specified by:
writeNodeStart
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeNodeEndSymbol
public void writeNodeEndSymbol() throws java.io.IOException
- Specified by:
writeNodeEndSymbol
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeNodeEndTag
public void writeNodeEndTag(java.lang.String nameSpacePrefix, java.lang.String localName) throws java.io.IOException
- Specified by:
writeNodeEndTag
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeTextNode
public void writeTextNode(java.lang.String nameSpacePrefix, java.lang.String localName, java.lang.String text) throws java.io.IOException
- Specified by:
writeTextNode
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeEmptyNode
public void writeEmptyNode(java.lang.String nameSpacePrefix, java.lang.String localName) throws java.io.IOException
- Specified by:
writeEmptyNode
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
escapeAndWriteText
public void escapeAndWriteText(java.lang.String text) throws java.io.IOException
- Specified by:
escapeAndWriteText
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeAttributesStart
public void writeAttributesStart() throws java.io.IOException
- Specified by:
writeAttributesStart
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeAttributesEnd
public void writeAttributesEnd() throws java.io.IOException
- Specified by:
writeAttributesEnd
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeAttribute
public void writeAttribute(java.lang.String nameSpacePrefix, java.lang.String localName, java.lang.String value, boolean appendAttributesSeparator) throws java.io.IOException
- Specified by:
writeAttribute
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
writeDoubleQuotedAttributeValue
public void writeDoubleQuotedAttributeValue(java.lang.String value) throws java.io.IOException
- Throws:
java.io.IOException
-
writeComment
public void writeComment(java.lang.String text) throws java.io.IOException
- Specified by:
writeComment
in interfaceIPXMLWriter
- Throws:
java.io.IOException
-
-