Top Constructors Methods
org.apache.xerces.stax.events

public final Class EndElementImpl

extends ElementImpl
implements EndElement
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.EndElement, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
java.io.IOException, .Writer, java.util.Iterator, javax.xml.namespace.QName, javax.xml.stream.Location, .XMLStreamException, javax.xml.stream.events.EndElement

Author
Lucian Holland
Version
$Id: EndElementImpl.java 730796 2009-01-02 17:36:23Z mrglavas $

Constructor Summary

AccessConstructor and Description
public
EndElementImpl(final QName name, final Iterator<E> namespaces, final Location
The location object for this event.
location
)

Method Summary

Modifier and TypeMethod and Description
public void
writeAsEncodedUnicode(Writer
The writer that will output the data
writer
)

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters.
Inherited from org.apache.xerces.stax.events.ElementImpl:
createImmutableIteratorgetNamegetNamespaces

Constructor Detail

EndElementImplback to summary
public EndElementImpl(final QName name, final Iterator<E> namespaces, final Location location)
Parameters
location:Location

The location object for this event.

Method Detail

writeAsEncodedUnicodeback to summary
public void writeAsEncodedUnicode(Writer writer) throws XMLStreamException

Implements javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

Doc from javax.xml.stream.events.XMLEvent.writeAsEncodedUnicode.

This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters. No indentation or whitespace should be outputted. Any user defined event type SHALL have this method called when being written to on an output stream. Built in Event types MUST implement this method, but implementations MAY choose not call these methods for optimizations reasons when writing out built in Events to an output stream. The output generated MUST be equivalent in terms of the infoset expressed.

Parameters
writer:Writer

The writer that will output the data

Exceptions
XMLStreamException:
if there is a fatal error writing the event