Package com.thaiopensource.xml.out
Class XmlWriter
- java.lang.Object
-
- com.thaiopensource.xml.out.XmlWriter
-
public class XmlWriter extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlWriter(java.io.Writer writer, CharRepertoire cr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(java.lang.String name, java.lang.String value)voidcharacters(java.lang.String str)voidcharacters(java.lang.String str, boolean useCharRef)voidclose()voidcomment(java.lang.String str)voidendElement()voidflush()voidprocessingInstruction(java.lang.String target, java.lang.String str)voidsetNewline(java.lang.String newline)voidstartElement(java.lang.String name)voidwriteXmlDecl(java.lang.String enc)
-
-
-
Constructor Detail
-
XmlWriter
public XmlWriter(java.io.Writer writer, CharRepertoire cr)
-
-
Method Detail
-
setNewline
public void setNewline(java.lang.String newline)
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
writeXmlDecl
public void writeXmlDecl(java.lang.String enc) throws java.io.IOException- Throws:
java.io.IOException
-
startElement
public void startElement(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
endElement
public void endElement() throws java.io.IOException- Throws:
java.io.IOException
-
attribute
public void attribute(java.lang.String name, java.lang.String value) throws java.io.IOException- Throws:
java.io.IOException
-
characters
public void characters(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
characters
public void characters(java.lang.String str, boolean useCharRef) throws java.io.IOException- Throws:
java.io.IOException
-
comment
public void comment(java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
-