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

public final Class EndDocumentImpl

extends XMLEventImpl
implements EndDocument
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.EndDocument, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
java.io.Writer, javax.xml.stream.Location, .XMLStreamException, javax.xml.stream.events.EndDocument

Author
Lucian Holland
Version
$Id: EndDocumentImpl.java 730471 2008-12-31 20:45:32Z mrglavas $

Constructor Summary

AccessConstructor and Description
public
EndDocumentImpl(Location
Location object for this event.
location
)

Constructor.

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.XMLEventImpl:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementtoString

Constructor Detail

EndDocumentImplback to summary
public EndDocumentImpl(Location location)

Constructor.

Parameters
location:Location

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