|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TSAXDocument
TSAXDocument interface represents a single XML document. You must provide a class that implements this interface when using a SAX object model and intend to use the SAX object model to process single XML objects. Single XML objects are either returned by Tamino via a retrieve method of an accessor or are instantiated using one of the newInstance factory methods of the TXMLObject class.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |