| |
|
| java.lang.Object javanet.staxutils.BaseXMLEventWriter
All known Subclasses: javanet.staxutils.io.StreamEventWriter, javanet.staxutils.XMLStreamEventWriter,
BaseXMLEventWriter | abstract public class BaseXMLEventWriter implements XMLEventWriter(Code) | | Base class for
XMLEventWriter implementations. This implemenation
buffers Attribute and Namespace events as specified in the specification,
maintains a stack of NamespaceContext instances based on the events it
receives, and repairs any missing namespaces. Subclasses should implement the
BaseXMLEventWriter.sendEvent(XMLEvent) method to receive the processed events and
perform additional processing.
author: Christian Niles version: $Revision: 1.9 $ |
attrBuff | protected Map attrBuff(Code) | | LinkedHashMap of attribute events sent surrounding the last
StartElement. By using LinkedHashMap, the attributes will stay in the
order they were defined.
|
closed | protected boolean closed(Code) | | Whether this writer has been closed or not.
|
lastStart | protected StartElement lastStart(Code) | | Reference to the last StartElement sent. This will be null if no
StartElement has been sent, or after a non Attribute/Namespace
event is received.
|
nsBuff | protected Map nsBuff(Code) | | LinkedHashMap of namespace events sent surrounding the last
StartElement. By using LinkedHashMap, the namespaces will stay in the
order they were defined.
|
BaseXMLEventWriter | protected BaseXMLEventWriter()(Code) | | |
cacheAttribute | protected void cacheAttribute(Attribute attr)(Code) | | Adds the specified
Attribute to the attribute cache.
Parameters: attr - The attribute to cache. |
cacheNamespace | protected void cacheNamespace(Namespace ns)(Code) | | Adds the provided
Namespace event to the namespace cache. The
current namespace context will not be affected.
Parameters: ns - The namespace to add to the cache. |
sendEvent | abstract protected void sendEvent(XMLEvent event) throws XMLStreamException(Code) | | Called by the methods of this class to write the event to the stream.
Parameters: event - The event to write. throws: XMLStreamException - If an error occurs processing the event. |
|
|
|