public interface TSAXDocument
The class implementing the TSAXDocument interface works in close relationship with a TSAXDocumentDefaulthandler implementation. This class handles the SAX events and normally produces an instance of the associated TSAXDocument class. The class implementing the TSAXDocument interface also determines the type of objects returned by the getDocument method of TXMLObject instances of the SAX object model in question.
This interface only defines a method to access the document root element and one to serialize the entire document representation into a character output stream.
Modifier and Type | Method and Description |
---|---|
TSAXElement |
getRootElement()
Gets the document root element as a TSAXElement instance.
|
void |
writeTo(java.io.Writer writer)
Serializes the document content as a character output stream into the given
writer.
|
TSAXElement getRootElement()
void writeTo(java.io.Writer writer)
writer
- a Writer instance to be used to write the document content as
a character output stream.Copyright (c) 2017 Software AG. All Rights Reserved.