|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.kxml.io.AbstractXmlWriter
org.kxml.io.XmlWriter
a concrete XML Writer
Field Summary | |
protected java.io.Writer |
writer
|
Fields inherited from class org.kxml.io.AbstractXmlWriter |
current |
Fields inherited from class java.io.Writer |
lock |
Constructor Summary | |
XmlWriter(java.io.Writer writer)
creates a new xmlWritet based on the given writer |
Method Summary | |
void |
attribute(java.lang.String name,
java.lang.String value)
writes a degenerated tag with the given name and attributes |
protected void |
checkPending()
|
void |
close()
closes the XmlWriter by closing the underlying writer |
void |
endTag()
writes an end tag. |
void |
flush()
flushes the XmlWriter. |
protected void |
startTag(PrefixMap prefixMap,
java.lang.String tag)
writes a start tag with the given name |
void |
write(char c)
writes a single character using the xml escaping rules |
void |
write(char[] buf,
int start,
int len)
writes an character array using the XML escaping rules |
void |
writeIndent()
|
void |
writeLegacy(int type,
java.lang.String content)
ATTENTION: Application needs to take care about not writing illegal character sequences (like comment end in comments) |
void |
writeRaw(java.lang.String s)
writes a string without escaping. |
Methods inherited from class org.kxml.io.AbstractXmlWriter |
attribute, getPrefixMap, startTag, startTag, startTag |
Methods inherited from class java.io.Writer |
write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.Writer writer
Constructor Detail |
public XmlWriter(java.io.Writer writer)
Method Detail |
protected void checkPending() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void write(char c) throws java.io.IOException
java.io.IOException
public void write(char[] buf, int start, int len) throws java.io.IOException
java.io.IOException
public void writeIndent() throws java.io.IOException
java.io.IOException
public void attribute(java.lang.String name, java.lang.String value) throws java.io.IOException
attribute
in class AbstractXmlWriter
java.io.IOException
protected void startTag(PrefixMap prefixMap, java.lang.String tag) throws java.io.IOException
startTag
in class AbstractXmlWriter
java.io.IOException
public void endTag() throws java.io.IOException
endTag
in class AbstractXmlWriter
java.io.IOException
public void writeLegacy(int type, java.lang.String content) throws java.io.IOException
writeLegacy
in class AbstractXmlWriter
java.io.IOException
public void writeRaw(java.lang.String s) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |