<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Sep 18 10:25:43 GMT+01:00 2001 --> <TITLE> : Class Emitter </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/icl/saxon/output/DTDEmitter.html"><B>PREV CLASS</B></A> <A HREF="../../../../com/icl/saxon/output/ErrorEmitter.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Emitter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.icl.saxon.output</FONT> <BR> Class Emitter</H2> <PRE> java.lang.Object | +--<B>com.icl.saxon.output.Emitter</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>javax.xml.transform.Result</DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/icl/saxon/om/Builder.html">Builder</A>, <A HREF="../../../../com/icl/saxon/output/ContentHandlerProxy.html">ContentHandlerProxy</A>, <A HREF="../../../../com/icl/saxon/output/DocumentHandlerProxy.html">DocumentHandlerProxy</A>, <A HREF="../../../../com/icl/saxon/output/DOMEmitter.html">DOMEmitter</A>, <A HREF="../../../../com/icl/saxon/output/ErrorEmitter.html">ErrorEmitter</A>, <A HREF="../../../../com/icl/saxon/output/ProxyEmitter.html">ProxyEmitter</A>, <A HREF="../../../../com/icl/saxon/output/XMLEmitter.html">XMLEmitter</A></DD> </DL> <HR> <DL> <DT>public abstract class <B>Emitter</B><DT>extends java.lang.Object<DT>implements javax.xml.transform.Result</DL> <P> Emitter: This interface defines methods that must be implemented by components that format SAXON output. There is one emitter for XML, one for HTML, and so on. Additional methods are concerned with setting options and providing a Writer.<p> The interface is deliberately designed to be as close as possible to the standard SAX2 ContentHandler interface, however, it allows additional information to be made available. <P> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Field Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected org.xml.sax.Locator</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#locator">locator</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected <A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#namePool">namePool</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.util.Properties</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#outputProperties">outputProperties</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.io.OutputStream</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#outputStream">outputStream</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#systemId">systemId</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.io.Writer</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#writer">writer</A></B></CODE> <BR> </TD> </TR> </TABLE> <A NAME="fields_inherited_from_class_javax.xml.transform.Result"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Fields inherited from interface javax.xml.transform.Result</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING</CODE></TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#Emitter()">Emitter</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#characters(char[], int, int)">characters</A></B>(char[] chars, int start, int len)</CODE> <BR> Output character data</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#comment(char[], int, int)">comment</A></B>(char[] chars, int start, int length)</CODE> <BR> Output a comment.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#endDocument()">endDocument</A></B>()</CODE> <BR> Notify document end</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#endElement(int)">endElement</A></B>(int nameCode)</CODE> <BR> Output an element end tag</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#getNamePool()">getNamePool</A></B>()</CODE> <BR> Get the namepool used for this document</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Properties</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#getOutputProperties()">getOutputProperties</A></B>()</CODE> <BR> Get the output properties</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.io.OutputStream</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#getOutputStream()">getOutputStream</A></B>()</CODE> <BR> Get the output stream</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#getSystemId()">getSystemId</A></B>()</CODE> <BR> Get the System ID</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.io.Writer</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#getWriter()">getWriter</A></B>()</CODE> <BR> Get the output writer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../../../../com/icl/saxon/output/Emitter.html">Emitter</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#makeEmitter(java.lang.String)">makeEmitter</A></B>(java.lang.String className)</CODE> <BR> load a named output emitter or document handler and check it is OK.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A></B>(java.lang.String name, java.lang.String data)</CODE> <BR> Output a processing instruction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setDocumentLocator(org.xml.sax.Locator)">setDocumentLocator</A></B>(org.xml.sax.Locator locator)</CODE> <BR> Set locator, to identify position in the document.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setEscaping(boolean)">setEscaping</A></B>(boolean escaping)</CODE> <BR> Switch escaping on or off.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setNamePool(com.icl.saxon.om.NamePool)">setNamePool</A></B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> namePool)</CODE> <BR> Set the namePool in which all name codes can be found</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setOutputProperties(java.util.Properties)">setOutputProperties</A></B>(java.util.Properties props)</CODE> <BR> Set the output properties</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setOutputStream(java.io.OutputStream)">setOutputStream</A></B>(java.io.OutputStream stream)</CODE> <BR> Set the output destination as a byte stream</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setSystemId(java.lang.String)">setSystemId</A></B>(java.lang.String systemId)</CODE> <BR> Set the System ID</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setUnparsedEntity(java.lang.String, java.lang.String)">setUnparsedEntity</A></B>(java.lang.String name, java.lang.String uri)</CODE> <BR> Set unparsed entity URI Used only when supplying input from a parser.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#setWriter(java.io.Writer)">setWriter</A></B>(java.io.Writer writer)</CODE> <BR> Set the output destination as a character stream</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#startDocument()">startDocument</A></B>()</CODE> <BR> Notify document start</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#startElement(int, org.xml.sax.Attributes, int[], int)">startElement</A></B>(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount)</CODE> <BR> Output an element start tag.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/icl/saxon/output/Emitter.html#usesWriter()">usesWriter</A></B>()</CODE> <BR> Determine whether the Emitter wants a Writer for character output or an OutputStream for binary output</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Field Detail</B></FONT></TD> </TR> </TABLE> <A NAME="namePool"><!-- --></A><H3> namePool</H3> <PRE> protected <A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> <B>namePool</B></PRE> <DL> </DL> <HR> <A NAME="systemId"><!-- --></A><H3> systemId</H3> <PRE> protected java.lang.String <B>systemId</B></PRE> <DL> </DL> <HR> <A NAME="writer"><!-- --></A><H3> writer</H3> <PRE> protected java.io.Writer <B>writer</B></PRE> <DL> </DL> <HR> <A NAME="outputStream"><!-- --></A><H3> outputStream</H3> <PRE> protected java.io.OutputStream <B>outputStream</B></PRE> <DL> </DL> <HR> <A NAME="outputProperties"><!-- --></A><H3> outputProperties</H3> <PRE> protected java.util.Properties <B>outputProperties</B></PRE> <DL> </DL> <HR> <A NAME="locator"><!-- --></A><H3> locator</H3> <PRE> protected org.xml.sax.Locator <B>locator</B></PRE> <DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="Emitter()"><!-- --></A><H3> Emitter</H3> <PRE> public <B>Emitter</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="setNamePool(com.icl.saxon.om.NamePool)"><!-- --></A><H3> setNamePool</H3> <PRE> public void <B>setNamePool</B>(<A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> namePool)</PRE> <DL> <DD>Set the namePool in which all name codes can be found<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getNamePool()"><!-- --></A><H3> getNamePool</H3> <PRE> public <A HREF="../../../../com/icl/saxon/om/NamePool.html">NamePool</A> <B>getNamePool</B>()</PRE> <DL> <DD>Get the namepool used for this document<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSystemId(java.lang.String)"><!-- --></A><H3> setSystemId</H3> <PRE> public void <B>setSystemId</B>(java.lang.String systemId)</PRE> <DL> <DD>Set the System ID<DD><DL> <DT><B>Specified by: </B><DD><CODE>setSystemId</CODE> in interface <CODE>javax.xml.transform.Result</CODE></DL> </DD> </DL> <HR> <A NAME="getSystemId()"><!-- --></A><H3> getSystemId</H3> <PRE> public java.lang.String <B>getSystemId</B>()</PRE> <DL> <DD>Get the System ID<DD><DL> <DT><B>Specified by: </B><DD><CODE>getSystemId</CODE> in interface <CODE>javax.xml.transform.Result</CODE></DL> </DD> </DL> <HR> <A NAME="setOutputProperties(java.util.Properties)"><!-- --></A><H3> setOutputProperties</H3> <PRE> public void <B>setOutputProperties</B>(java.util.Properties props)</PRE> <DL> <DD>Set the output properties<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getOutputProperties()"><!-- --></A><H3> getOutputProperties</H3> <PRE> public java.util.Properties <B>getOutputProperties</B>()</PRE> <DL> <DD>Get the output properties<DD><DL> </DL> </DD> </DL> <HR> <A NAME="usesWriter()"><!-- --></A><H3> usesWriter</H3> <PRE> public boolean <B>usesWriter</B>()</PRE> <DL> <DD>Determine whether the Emitter wants a Writer for character output or an OutputStream for binary output<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setWriter(java.io.Writer)"><!-- --></A><H3> setWriter</H3> <PRE> public void <B>setWriter</B>(java.io.Writer writer)</PRE> <DL> <DD>Set the output destination as a character stream<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getWriter()"><!-- --></A><H3> getWriter</H3> <PRE> public java.io.Writer <B>getWriter</B>()</PRE> <DL> <DD>Get the output writer<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setOutputStream(java.io.OutputStream)"><!-- --></A><H3> setOutputStream</H3> <PRE> public void <B>setOutputStream</B>(java.io.OutputStream stream)</PRE> <DL> <DD>Set the output destination as a byte stream<DD><DL> </DL> </DD> </DL> <HR> <A NAME="getOutputStream()"><!-- --></A><H3> getOutputStream</H3> <PRE> public java.io.OutputStream <B>getOutputStream</B>()</PRE> <DL> <DD>Get the output stream<DD><DL> </DL> </DD> </DL> <HR> <A NAME="startDocument()"><!-- --></A><H3> startDocument</H3> <PRE> public abstract void <B>startDocument</B>() throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Notify document start<DD><DL> </DL> </DD> </DL> <HR> <A NAME="endDocument()"><!-- --></A><H3> endDocument</H3> <PRE> public abstract void <B>endDocument</B>() throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Notify document end<DD><DL> </DL> </DD> </DL> <HR> <A NAME="startElement(int, org.xml.sax.Attributes, int[], int)"><!-- --></A><H3> startElement</H3> <PRE> public abstract void <B>startElement</B>(int nameCode, org.xml.sax.Attributes attributes, int[] namespaces, int nscount) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Output an element start tag.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>namespaces</CODE> - Array of namespace codes identifying the namespace prefix/uri pairs associated with this element<DD><CODE>nscount</CODE> - Number of significant entries within namespaces array</DL> </DD> </DL> <HR> <A NAME="endElement(int)"><!-- --></A><H3> endElement</H3> <PRE> public abstract void <B>endElement</B>(int nameCode) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Output an element end tag<DD><DL> </DL> </DD> </DL> <HR> <A NAME="characters(char[], int, int)"><!-- --></A><H3> characters</H3> <PRE> public abstract void <B>characters</B>(char[] chars, int start, int len) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Output character data<DD><DL> </DL> </DD> </DL> <HR> <A NAME="processingInstruction(java.lang.String, java.lang.String)"><!-- --></A><H3> processingInstruction</H3> <PRE> public abstract void <B>processingInstruction</B>(java.lang.String name, java.lang.String data) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Output a processing instruction<DD><DL> </DL> </DD> </DL> <HR> <A NAME="comment(char[], int, int)"><!-- --></A><H3> comment</H3> <PRE> public abstract void <B>comment</B>(char[] chars, int start, int length) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Output a comment. <br> (The method signature is borrowed from the SAX2 LexicalHandler interface)<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setEscaping(boolean)"><!-- --></A><H3> setEscaping</H3> <PRE> public void <B>setEscaping</B>(boolean escaping) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Switch escaping on or off. This is called when the XSLT disable-output-escaping attribute is used to switch escaping on or off. It is also called at the start and end of a CDATA section It is not called for other sections of output (e.g. comments) where escaping is inappropriate.<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setDocumentLocator(org.xml.sax.Locator)"><!-- --></A><H3> setDocumentLocator</H3> <PRE> public void <B>setDocumentLocator</B>(org.xml.sax.Locator locator)</PRE> <DL> <DD>Set locator, to identify position in the document. Used only when supplying input from a parser.<DD><DL> </DL> </DD> </DL> <HR> <A NAME="setUnparsedEntity(java.lang.String, java.lang.String)"><!-- --></A><H3> setUnparsedEntity</H3> <PRE> public void <B>setUnparsedEntity</B>(java.lang.String name, java.lang.String uri) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>Set unparsed entity URI Used only when supplying input from a parser.<DD><DL> </DL> </DD> </DL> <HR> <A NAME="makeEmitter(java.lang.String)"><!-- --></A><H3> makeEmitter</H3> <PRE> public static <A HREF="../../../../com/icl/saxon/output/Emitter.html">Emitter</A> <B>makeEmitter</B>(java.lang.String className) throws javax.xml.transform.TransformerException</PRE> <DL> <DD>load a named output emitter or document handler and check it is OK.<DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/icl/saxon/output/DTDEmitter.html"><B>PREV CLASS</B></A> <A HREF="../../../../com/icl/saxon/output/ErrorEmitter.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Emitter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>