CopyFrom
public void CopyFrom(ToXMLStream xmlListener)
Copy properties from another SerializerToXML.
xmlListener
- non-null reference to a SerializerToXML object.
addAttribute
public void addAttribute(String uri,
String localName,
String rawName,
String type,
String value)
throws SAXException
Add at attribute to the current element
- addAttribute in interface ExtendedContentHandler
- addAttribute in interface SerializerBase
uri
- the namespace URI of the attribute namelocalName
- the local name of the attribute (without prefix)rawName
- the qualified name of the attributetype
- the attribute type typically character data (CDATA)value
- the value of the attribute
addUniqueAttribute
public void addUniqueAttribute(String name,
String value,
int flags)
throws SAXException
This method is used to add an attribute to the currently open element.
The caller has guaranted that this attribute is unique, which means that it
not been seen before and will not be seen again.
- addUniqueAttribute in interface ExtendedContentHandler
name
- the qualified name of the attributevalue
- the value of the attribute which can contain only
ASCII printable characters characters in the range 32 to 127 inclusive.flags
- the bit values of this integer give optimization information.
endPreserving
public void endPreserving()
throws SAXException
Ends a whitespace preserving section.
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
Receive notification of a processing instruction.
- processingInstruction in interface ContentHandler
target
- The processing instruction target.data
- The processing instruction data, or null if
none was supplied.
reset
public boolean reset()
Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).
- reset in interface Serializer
- reset in interface ToStream
- true if the class was successfuly reset.
startDocumentInternal
public void startDocumentInternal()
throws SAXException
Receive notification of the beginning of a document.
startPreserving
public void startPreserving()
throws SAXException
Starts a whitespace preserving section. All characters printed
within a preserving section are printed without indentation and
without consolidating multiple spaces. This is equivalent to
the
xml:space="preserve" attribute. Only XML
and HTML serializers need to support this method.
The contents of the whitespace preserving section will be delivered
through the regular
characters event.