|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.xml.writer.XMLWriterSupport
org.jfree.xml.writer.XMLWriter
public class XMLWriter
A class for writing XML to a character stream.
| Field Summary |
|---|
| Fields inherited from class org.jfree.xml.writer.XMLWriterSupport |
|---|
CLOSE, CLOSE_TAG_DECREASE, INDENT_ONLY, OPEN, OPEN_TAG_INCREASE |
| Constructor Summary | |
|---|---|
XMLWriter(java.io.Writer writer)
Creates a new XML writer for the specified character stream. |
|
XMLWriter(java.io.Writer writer,
java.lang.String indentString)
Creates a new XML writer for the specified character stream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying character stream. |
void |
writeCloseTag(java.lang.String tag)
Writes a closing XML tag. |
void |
writeTag(java.lang.String name,
AttributeList attributes,
boolean close)
Writes an opening XML tag along with a list of attribute/value pairs. |
void |
writeTag(java.lang.String name,
boolean close)
Writes an opening XML tag that has no attributes. |
void |
writeTag(java.lang.String name,
java.util.Properties attributes,
boolean close)
Deprecated. use the attribute list instead ... |
void |
writeTag(java.lang.String name,
java.lang.String attributeName,
java.lang.String attributeValue,
boolean close)
Writes an opening XML tag with an attribute/value pair. |
void |
writeText(java.lang.String text)
Writes some text to the character stream. |
void |
writeXmlDeclaration()
Writes the XML declaration that usually appears at the top of every XML file. |
| Methods inherited from class org.jfree.xml.writer.XMLWriterSupport |
|---|
allowLineBreak, decreaseIndent, endBlock, getIndentLevel, getLineSeparator, getSafeTags, increaseIndent, indent, normalize, startBlock, writeCloseTag, writeTag, writeTag, writeTag, writeTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLWriter(java.io.Writer writer)
writer - the character stream.
public XMLWriter(java.io.Writer writer,
java.lang.String indentString)
writer - the character stream.indentString - the string used for indentation (should contain
white space, for example four spaces).| Method Detail |
|---|
public void writeXmlDeclaration()
throws java.io.IOException
java.io.IOException - if there is a problem writing to the character
stream.
public void writeTag(java.lang.String name,
boolean close)
throws java.io.IOException
name - the tag name.close - a flag that controls whether or not the tag is closed
immediately.
java.io.IOException - if there is an I/O problem.
public void writeCloseTag(java.lang.String tag)
throws java.io.IOException
tag - the tag name.
java.io.IOException - if there is an I/O problem.
public void writeTag(java.lang.String name,
java.lang.String attributeName,
java.lang.String attributeValue,
boolean close)
throws java.io.IOException
name - the tag name.attributeName - the attribute name.attributeValue - the attribute value.close - controls whether the tag is closed.
java.io.IOException - if there is an I/O problem.
public void writeTag(java.lang.String name,
AttributeList attributes,
boolean close)
throws java.io.IOException
name - the tag name.attributes - the attributes.close - controls whether the tag is closed.
java.io.IOException - if there is an I/O problem.
public void writeTag(java.lang.String name,
java.util.Properties attributes,
boolean close)
throws java.io.IOException
name - the tag name.attributes - the attributes.close - controls whether the tag is closed.
java.io.IOException - if there is an I/O problem.
public void writeText(java.lang.String text)
throws java.io.IOException
text - the text.
java.io.IOException - if there is a problem writing to the character
stream.
public void close()
throws java.io.IOException
java.io.IOException - if there is a problem closing the character stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||