oracle.xml.xsql
Interface XSQLDocumentSerializer
- public interface XSQLDocumentSerializer
Interface that must be implemented by all XSQL Serializers
which serialize an XSQL data page as an XML Document
to a PrintWriter.
Upon encountering a serializer="XXX" pseudo-attribute
in an <?xml-stylesheet?> processing instruction,
the XSQL Page Processor invokes the associated serializer by:
- Constructing an instance of the serializer using the no-args constructor
- Invoking the XSQL document serializer's serialize() method
NOTE: An implementation of XSQLDocumentSerializer
is expected to do the following actions.
- First, call env.setContentType() to set the content type
- Then, call env.getWriter() to get the Writer to write to
If the serializer throws an unhandled exception, the
XSQL Page Processor will format the stacktrace.
See oracle.xml.xsql.src.serializers.XSQLSampleSerializer
for an example.
serialize
public void serialize(Document doc,
XSQLPageRequest env)
throws java.lang.Throwable