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.
-
XMLWriter(Object)
-
-
attribute(String, String)
- Write an attribute.
-
endElement(String)
- End an element.
-
markup(String)
- Write markup.
-
processingInstruction(String, String)
- Write a processing instruction.
-
startElement(String)
- Start an element.
XMLWriter
protected XMLWriter(Object lock)
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.
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.
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.
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.
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