| java.lang.Object java.io.Writer com.jclark.xml.output.XMLWriter
All known Subclasses: com.jclark.xml.output.SyncXMLWriter, com.jclark.xml.output.UTF8XMLWriter,
XMLWriter | abstract public class XMLWriter extends Writer (Code) | | An extension of Writer for writing XML documents.
The normal write methods write character data,
automatically escaping markup characters.
version: $Revision: 1.4 $ $Date: 1998/06/16 13:24:37 $ |
attribute | abstract public void attribute(String name, String value) throws IOException(Code) | | Writes an attribute.
This is not legal if there have been calls to methods other than
attribute since the last call to startElement ,
unless inside a startAttribute , endAttribute
pair.
|
characterReference | abstract public void characterReference(int n) throws IOException(Code) | | Writes a character reference.
|
endAttribute | abstract public void endAttribute() throws IOException(Code) | | Ends an attribute.
This writes the closing quote of the attribute value.
|
endElement | abstract public void endElement(String name) throws IOException(Code) | | Ends an element.
This may output an end-tag or close the current start-tag as an
empty element.
|
endReplacementText | abstract public void endReplacementText() throws IOException(Code) | | Ends the replacement text for an internal entity.
This disables the extra level of escaping enabled by
startReplacementText .
This call does not itself cause anything to be written.
|
entityReference | abstract public void entityReference(boolean isParam, String name) throws IOException(Code) | | Writes an entity reference.
|
markup | abstract public void markup(String str) throws IOException(Code) | | Writes markup. The characters in the string will be written as is
without being escaped (except for any escaping enabled by
startReplacementText ).
|
processingInstruction | abstract public void processingInstruction(String target, String data) throws IOException(Code) | | Writes a processing instruction.
If data is non-empty a space will be inserted automatically
to separate it from the target .
|
startAttribute | abstract public void startAttribute(String name) throws IOException(Code) | | Starts an attribute.
This writes the attribute name, = and the opening
quote.
This provides an alternative to attribute
that allows markup to be included in the attribute value.
The value of the attribute is written using the normal
write methods;
endAttribute must be called at the end
of the attribute value.
Entity and character references can be written using
entityReference and characterReference .
|
startElement | abstract public void startElement(String name) throws IOException(Code) | | Starts 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 .
|
startReplacementText | abstract public void startReplacementText() throws IOException(Code) | | Starts the replacement text for an internal entity.
The replacement text must be ended with
endReplacementText .
This enables an extra level of escaping that protects
against the process of constructing an entity's replacement
text from the literal entity value.
See Section 4.5 of the XML Recommendation.
Between a call to startReplacementText
and endReplacementText , the argument to
markup would specify entity replacement text;
these would be escaped so that when processed as
a literal entity value, the specified entity replacement text
would be constructed.
This call does not itself cause anything to be written.
|
|
|