| java.lang.Object org.jfree.xml.writer.XMLWriterSupport org.jfree.xml.writer.XMLWriter
XMLWriter | public class XMLWriter extends XMLWriterSupport (Code) | | A class for writing XML to a character stream.
|
Constructor Summary | |
public | XMLWriter(Writer writer) Creates a new XML writer for the specified character stream. | public | XMLWriter(Writer writer, String indentString) Creates a new XML writer for the specified character stream. |
Method Summary | |
public void | close() Closes the underlying character stream. | public void | writeCloseTag(String tag) Writes a closing XML tag. | public void | writeTag(String name, boolean close) Writes an opening XML tag that has no attributes. | public void | writeTag(String name, String attributeName, String attributeValue, boolean close) Writes an opening XML tag with an attribute/value pair. | public void | writeTag(String name, AttributeList attributes, boolean close) Writes an opening XML tag along with a list of attribute/value pairs. | public void | writeTag(String name, Properties attributes, boolean close) Writes an opening XML tag along with a list of attribute/value pairs. | public void | writeText(String text) Writes some text to the character stream. | public void | writeXmlDeclaration() Writes the XML declaration that usually appears at the top of every XML
file.
throws: IOException - if there is a problem writing to the character stream. |
XMLWriter | public XMLWriter(Writer writer)(Code) | | Creates a new XML writer for the specified character stream. By
default, four spaces are used for indentation.
Parameters: writer - the character stream. |
XMLWriter | public XMLWriter(Writer writer, String indentString)(Code) | | Creates a new XML writer for the specified character stream.
Parameters: writer - the character stream. Parameters: indentString - the string used for indentation (should contain white space, for example four spaces). |
close | public void close() throws IOException(Code) | | Closes the underlying character stream.
throws: IOException - if there is a problem closing the character stream. |
writeTag | public void writeTag(String name, boolean close) throws IOException(Code) | | Writes an opening XML tag that has no attributes.
Parameters: name - the tag name. Parameters: close - a flag that controls whether or not the tag is closed immediately. throws: java.io.IOException - if there is an I/O problem. |
writeTag | public void writeTag(String name, String attributeName, String attributeValue, boolean close) throws IOException(Code) | | Writes an opening XML tag with an attribute/value pair.
Parameters: name - the tag name. Parameters: attributeName - the attribute name. Parameters: attributeValue - the attribute value. Parameters: close - controls whether the tag is closed. throws: java.io.IOException - if there is an I/O problem. |
writeTag | public void writeTag(String name, AttributeList attributes, boolean close) throws IOException(Code) | | Writes an opening XML tag along with a list of attribute/value pairs.
Parameters: name - the tag name. Parameters: attributes - the attributes. Parameters: close - controls whether the tag is closed. throws: java.io.IOException - if there is an I/O problem. |
writeTag | public void writeTag(String name, Properties attributes, boolean close) throws IOException(Code) | | Writes an opening XML tag along with a list of attribute/value pairs.
Parameters: name - the tag name. Parameters: attributes - the attributes. Parameters: close - controls whether the tag is closed. throws: java.io.IOException - if there is an I/O problem. |
writeText | public void writeText(String text) throws IOException(Code) | | Writes some text to the character stream.
Parameters: text - the text. throws: IOException - if there is a problem writing to the character stream. |
writeXmlDeclaration | public void writeXmlDeclaration() throws IOException(Code) | | Writes the XML declaration that usually appears at the top of every XML
file.
throws: IOException - if there is a problem writing to the character stream. |
Methods inherited from org.jfree.xml.writer.XMLWriterSupport | public void allowLineBreak() throws IOException(Code)(Java Doc) protected void decreaseIndent()(Code)(Java Doc) public void endBlock() throws IOException(Code)(Java Doc) public int getIndentLevel()(Code)(Java Doc) public static String getLineSeparator()(Code)(Java Doc) public SafeTagList getSafeTags()(Code)(Java Doc) protected void increaseIndent()(Code)(Java Doc) public void indent(Writer writer, int increase) throws IOException(Code)(Java Doc) public static String normalize(String s)(Code)(Java Doc) public void startBlock() throws IOException(Code)(Java Doc) public void writeCloseTag(Writer w, String tag) throws IOException(Code)(Java Doc) public void writeTag(Writer w, String name) throws IOException(Code)(Java Doc) public void writeTag(Writer w, String name, String attributeName, String attributeValue, boolean close) throws IOException(Code)(Java Doc) public void writeTag(Writer w, String name, Properties attributes, boolean close) throws IOException(Code)(Java Doc) public void writeTag(Writer w, String name, AttributeList attributes, boolean close) throws IOException(Code)(Java Doc)
|
|
|