All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jclark.xml.output.XMLWriter

java.lang.Object
   |
   +----java.io.Writer
           |
           +----com.jclark.xml.output.XMLWriter

public abstract class XMLWriter
extends Writer
An extension of Writer for writing XML documents. The normal write methods write character data, automatically escaping markup characters.


Constructor Index

 o XMLWriter(Object)

Method Index

 o attribute(String, String)
Write an attribute.
 o endElement(String)
End an element.
 o markup(String)
Write markup.
 o processingInstruction(String, String)
Write a processing instruction.
 o startElement(String)
Start an element.

Constructors

 o XMLWriter
 protected XMLWriter(Object lock)

Methods

 o startElement
 public abstract void startElement(String name) throws IOException
Start an element. This may be followed by zero or more calls to attribute. The start-tag will be closed by the first following call to any method other than attribute.

 o attribute
 public abstract void attribute(String name,
                                String value) throws IOException
Write an attribute. This is not legal if there have been calls to methods other than attribute since the last call to startElement.

 o endElement
 public abstract void endElement(String name) throws IOException
End an element. This may output an end-tag or close the current start-tag as an empty element.

 o processingInstruction
 public abstract void processingInstruction(String target,
                                            String data) throws IOException
Write a processing instruction. If data is non-empty a space will be inserted automatically to separate it from the target.

 o markup
 public abstract void markup(String str) throws IOException
Write markup. The characters in the string will be written as is without being escaped.


All Packages  Class Hierarchy  This Package  Previous  Next  Index