blob: 7658eef1a30524b6086e3ced1c49ba9e5932a712 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_18) on Sun Apr 01 21:18:36 PDT 2012 -->
<TITLE>
ToStream
</TITLE>
<META NAME="keywords" CONTENT="org.apache.xml.serializer.ToStream class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="ToStream";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ToStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ToSAXHandler.html" title="class in org.apache.xml.serializer"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/serializer/ToStream.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ToStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.xml.serializer</FONT>
<BR>
Class ToStream</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">org.apache.xml.serializer.SerializerBase</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xml.serializer.ToStream</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../org/apache/xml/serializer/DOMSerializer.html" title="interface in org.apache.xml.serializer">DOMSerializer</A>, <A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html" title="interface in org.apache.xml.serializer">ExtendedContentHandler</A>, <A HREF="../../../../org/apache/xml/serializer/ExtendedLexicalHandler.html" title="interface in org.apache.xml.serializer">ExtendedLexicalHandler</A>, <A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html" title="interface in org.apache.xml.serializer">SerializationHandler</A>, <A HREF="../../../../org/apache/xml/serializer/Serializer.html" title="interface in org.apache.xml.serializer">Serializer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html" title="interface in org.apache.xml.serializer">SerializerConstants</A>, <A HREF="../../../../org/apache/xml/serializer/XSLOutputAttributes.html" title="interface in org.apache.xml.serializer">XSLOutputAttributes</A>, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.ErrorHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler</DD>
</DL>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/xml/serializer/ToHTMLStream.html" title="class in org.apache.xml.serializer">ToHTMLStream</A>, <A HREF="../../../../org/apache/xml/serializer/ToTextStream.html" title="class in org.apache.xml.serializer">ToTextStream</A>, <A HREF="../../../../org/apache/xml/serializer/ToXMLStream.html" title="class in org.apache.xml.serializer">ToXMLStream</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.55"><B>ToStream</B></A><DT>extends <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></DL>
</PRE>
<P>
This abstract class is a base class for other stream
serializers (xml, html, text ...) that write output to a stream.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer">ToStream.BoolStack</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple stack for boolean values.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.WritertoStringBuffer.html" title="class in org.apache.xml.serializer">ToStream.WritertoStringBuffer</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This inner class is used only to collect attribute values
written by the method writeAttrString() into a string buffer.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#COMMENT_BEGIN">COMMENT_BEGIN</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#COMMENT_END">COMMENT_END</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_cdataStartCalled">m_cdataStartCalled</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;remembers if we are in between the startCDATA() and endCDATA() callbacks</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/apache/xml/serializer/CharInfo.html" title="class in org.apache.xml.serializer">CharInfo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_charInfo">m_charInfo</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map that tells which characters should have special treatment, and it
provides character to entity name lookup.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer">ToStream.BoolStack</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_disableOutputEscapingStates">m_disableOutputEscapingStates</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stack to keep track of disabling output escaping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;<A HREF="../../../../org/apache/xml/serializer/EncodingInfo.html" title="class in org.apache.xml.serializer">EncodingInfo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_encodingInfo">m_encodingInfo</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The encoding information associated with this serializer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_escaping">m_escaping</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Taken from XSLTC</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_expandDTDEntities">m_expandDTDEntities</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this flag is true DTD entity references are not left as-is,
which is exiting older behavior.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_inDoctype">m_inDoctype</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tells if we're in an internal document type subset.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_ispreserve">m_ispreserve</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;State flag to tell if preservation of whitespace
is important.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_isprevtext">m_isprevtext</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;State flag that tells if the previous node processed
was text, so we can tell if we should preserve whitespace.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_isUTF8">m_isUTF8</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag to quickly tell if the encoding is UTF8.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;char[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_lineSep">m_lineSep</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The system line separator for writing out line breaks.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_lineSepLen">m_lineSepLen</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The length of the line seperator, since the write is done
one character at a time.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_lineSepUse">m_lineSepUse</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if the the system line separator is to be used.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;java.io.OutputStream</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_outputStream">m_outputStream</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer">ToStream.BoolStack</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_preserves">m_preserves</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stack to keep track of whether or not we need to
preserve whitespace.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_shouldFlush">m_shouldFlush</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;True if we control the buffer, and we should flush the output on endDocument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_spaceBeforeClose">m_spaceBeforeClose</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add space before '/>' for XHTML.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_startNewLine">m_startNewLine</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flag to signal that a newline should be added.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#m_writer_set_by_user">m_writer_set_by_user</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;char[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#s_systemLineSep">s_systemLineSep</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.xml.serializer.SerializerBase"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class org.apache.xml.serializer.<A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_attrBuff">m_attrBuff</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_attributes">m_attributes</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_CdataElems">m_CdataElems</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_cdataTagOpen">m_cdataTagOpen</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_charsBuff">m_charsBuff</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_docIsEmpty">m_docIsEmpty</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_doctypePublic">m_doctypePublic</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_doctypeSystem">m_doctypeSystem</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_doIndent">m_doIndent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_elemContext">m_elemContext</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_indentAmount">m_indentAmount</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_inEntityRef">m_inEntityRef</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_inExternalDTD">m_inExternalDTD</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_mediatype">m_mediatype</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_needToCallStartDocument">m_needToCallStartDocument</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_needToOutputDocTypeDecl">m_needToOutputDocTypeDecl</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_prefixMap">m_prefixMap</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_shouldNotWriteXMLHeader">m_shouldNotWriteXMLHeader</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_sourceLocator">m_sourceLocator</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_standaloneWasSpecified">m_standaloneWasSpecified</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_StringOfCDATASections">m_StringOfCDATASections</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_tracer">m_tracer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_version">m_version</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#m_writer">m_writer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#PKG_NAME">PKG_NAME</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#PKG_PATH">PKG_PATH</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.xml.serializer.ExtendedContentHandler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface org.apache.xml.serializer.<A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html" title="interface in org.apache.xml.serializer">ExtendedContentHandler</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#HTML_ATTREMPTY">HTML_ATTREMPTY</A>, <A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#HTML_ATTRURL">HTML_ATTRURL</A>, <A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#NO_BAD_CHARS">NO_BAD_CHARS</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.apache.xml.serializer.SerializerConstants"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface org.apache.xml.serializer.<A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html" title="interface in org.apache.xml.serializer">SerializerConstants</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#CDATA_CONTINUE">CDATA_CONTINUE</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#CDATA_DELIMITER_CLOSE">CDATA_DELIMITER_CLOSE</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#CDATA_DELIMITER_OPEN">CDATA_DELIMITER_OPEN</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#DEFAULT_SAX_SERIALIZER">DEFAULT_SAX_SERIALIZER</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#EMPTYSTRING">EMPTYSTRING</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#ENTITY_AMP">ENTITY_AMP</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#ENTITY_CRLF">ENTITY_CRLF</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#ENTITY_GT">ENTITY_GT</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#ENTITY_LT">ENTITY_LT</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#ENTITY_QUOT">ENTITY_QUOT</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#XML_PREFIX">XML_PREFIX</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#XMLNS_PREFIX">XMLNS_PREFIX</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#XMLNS_URI">XMLNS_URI</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#XMLVERSION10">XMLVERSION10</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerConstants.html#XMLVERSION11">XMLVERSION11</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ToStream()">ToStream</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#accumDefaultEntity(java.io.Writer, char, int, char[], int, boolean, boolean)">accumDefaultEntity</A></B>(java.io.Writer&nbsp;writer,
char&nbsp;ch,
int&nbsp;i,
char[]&nbsp;chars,
int&nbsp;len,
boolean&nbsp;fromTextNode,
boolean&nbsp;escLF)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle one of the default entities, return false if it
is not a default entity.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#accumDefaultEscape(java.io.Writer, char, int, char[], int, boolean, boolean)">accumDefaultEscape</A></B>(java.io.Writer&nbsp;writer,
char&nbsp;ch,
int&nbsp;i,
char[]&nbsp;chars,
int&nbsp;len,
boolean&nbsp;fromTextNode,
boolean&nbsp;escLF)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Escape and writer.write a character.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#addAttributeAlways(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)">addAttributeAlways</A></B>(java.lang.String&nbsp;uri,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;rawName,
java.lang.String&nbsp;type,
java.lang.String&nbsp;value,
boolean&nbsp;xslAttribute)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the given attribute to the set of attributes, even if there is
no currently open element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#addCdataSectionElement(java.lang.String, java.util.Vector)">addCdataSectionElement</A></B>(java.lang.String&nbsp;URI_and_localName,
java.util.Vector&nbsp;v)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a URI/LocalName pair of strings to the list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#addCdataSectionElements(java.lang.String)">addCdataSectionElements</A></B>(java.lang.String&nbsp;URI_and_localNames)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remembers the cdata sections specified in the cdata-section-elements by appending the given
cdata section elements to the list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#attributeDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">attributeDecl</A></B>(java.lang.String&nbsp;eName,
java.lang.String&nbsp;aName,
java.lang.String&nbsp;type,
java.lang.String&nbsp;valueDefault,
java.lang.String&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report an attribute type declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#cdata(char[], int, int)">cdata</A></B>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of cdata.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#characters(char[], int, int)">characters</A></B>(char[]&nbsp;chars,
int&nbsp;start,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of character data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#characters(java.lang.String)">characters</A></B>(java.lang.String&nbsp;s)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of character data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#charactersRaw(char[], int, int)">charactersRaw</A></B>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If available, when the disable-output-escaping attribute is used,
output raw text without escaping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#closeCDATA()">closeCDATA</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This helper method to writes out "]]>" when closing a CDATA section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#closeStartTag()">closeStartTag</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For the enclosing elements starting tag write out
out any attributes followed by ">"</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#comment(char[], int, int)">comment</A></B>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of an XML comment anywhere in the document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#DTDprolog()">DTDprolog</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A private helper method to output the</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#elementDecl(java.lang.String, java.lang.String)">elementDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;model)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report an element type declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endCDATA()">endCDATA</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report the end of a CDATA section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endDTD()">endDTD</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report the end of DTD declarations.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endElement(java.lang.String)">endElement</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of the end of an element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endElement(java.lang.String, java.lang.String, java.lang.String)">endElement</A></B>(java.lang.String&nbsp;namespaceURI,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of the end of an element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endNonEscaping()">endNonEscaping</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ends an un-escaping section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endPrefixMapping(java.lang.String)">endPrefixMapping</A></B>(java.lang.String&nbsp;prefix)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End the scope of a prefix-URI Namespace mapping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ensureAttributesNamespaceIsDeclared(java.lang.String, java.lang.String, java.lang.String)">ensureAttributesNamespaceIsDeclared</A></B>(java.lang.String&nbsp;ns,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;rawName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Makes sure that the namespace URI for the given qualified attribute name
is declared.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ensurePrefixIsDeclared(java.lang.String, java.lang.String)">ensurePrefixIsDeclared</A></B>(java.lang.String&nbsp;ns,
java.lang.String&nbsp;rawName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#escapingNotNeeded(char)">escapingNotNeeded</A></B>(char&nbsp;ch)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell if this character can be written without escaping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)">externalEntityDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;publicId,
java.lang.String&nbsp;systemId)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report a parsed external entity declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#firePseudoAttributes()">firePseudoAttributes</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To fire off the pseudo characters of attributes, as they currently
exist.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#flushPending()">flushPending</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method flushes any pending events, which can be startDocument()
closing the opening tag of an element, or closing an open CDATA section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#flushWriter()">flushWriter</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flush the formatter's result stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#getIndentAmount()">getIndentAmount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the m_indentAmount.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Properties</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#getOutputFormat()">getOutputFormat</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the output format for this serializer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.io.OutputStream</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#getOutputStream()">getOutputStream</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the output stream where the events will be serialized to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.io.Writer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#getWriter()">getWriter</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the character stream where the events will be serialized to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ignorableWhitespace(char[], int, int)">ignorableWhitespace</A></B>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of ignorable whitespace in element content.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#indent()">indent</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indent at the current element nesting depth.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#indent(int)">indent</A></B>(int&nbsp;depth)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Might print a newline character and the indentation amount
of the given depth.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#internalEntityDecl(java.lang.String, java.lang.String)">internalEntityDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report an internal entity declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#isCharacterInC0orC1Range(char)">isCharacterInC0orC1Range</A></B>(char&nbsp;ch)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method checks if a given character is between C0 or C1 range
of Control characters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#isEscapingDisabled()">isEscapingDisabled</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell if the character escaping should be disabled for the current state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#isNELorLSEPCharacter(char)">isNELorLSEPCharacter</A></B>(char&nbsp;ch)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method checks if a given character either NEL (0x85) or LSEP (0x2028)
These are new end of line charcters added in XML 1.1.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#notationDecl(java.lang.String, java.lang.String, java.lang.String)">notationDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;pubID,
java.lang.String&nbsp;sysID)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#outputDocTypeDecl(java.lang.String, boolean)">outputDocTypeDecl</A></B>(java.lang.String&nbsp;name,
boolean&nbsp;closeDecl)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output the doc type declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#outputEntityDecl(java.lang.String, java.lang.String)">outputEntityDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output the doc type declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#outputLineSep()">outputLineSep</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Output a system-dependent line break.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#printSpace(int)">printSpace</A></B>(int&nbsp;n)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints <var>n</var> spaces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#processAttributes(java.io.Writer, int)">processAttributes</A></B>(java.io.Writer&nbsp;writer,
int&nbsp;nAttrs)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process the attributes, which means to write out the currently
collected attributes to the writer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#processDirty(char[], int, int, char, int, boolean)">processDirty</A></B>(char[]&nbsp;chars,
int&nbsp;end,
int&nbsp;i,
char&nbsp;ch,
int&nbsp;lastDirty,
boolean&nbsp;fromTextNode)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process a dirty character and any preeceding clean characters
that were not yet processed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#processLineFeed(char[], int, int, java.io.Writer)">processLineFeed</A></B>(char[]&nbsp;chars,
int&nbsp;i,
int&nbsp;lastProcessed,
java.io.Writer&nbsp;writer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#reset()">reset</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#resetToStream()">resetToStream</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reset all of the fields owned by ToStream class</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#serialize(org.w3c.dom.Node)">serialize</A></B>(org.w3c.dom.Node&nbsp;node)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serializes the DOM node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setCdataSectionElements(java.lang.String, java.util.Properties)">setCdataSectionElements</A></B>(java.lang.String&nbsp;key,
java.util.Properties&nbsp;props)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches for the list of qname properties with the specified key in the
property list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setCdataSectionElements(java.util.Vector)">setCdataSectionElements</A></B>(java.util.Vector&nbsp;URI_and_localNames)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remembers the cdata sections specified in the cdata-section-elements.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setContentHandler(org.xml.sax.ContentHandler)">setContentHandler</A></B>(org.xml.sax.ContentHandler&nbsp;ch)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the SAX Content handler that the serializer sends its output to.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setDTDEntityExpansion(boolean)">setDTDEntityExpansion</A></B>(boolean&nbsp;expand)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set to false the serializer does not expand DTD entities,
but leaves them as is, the default value is true;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setEncoding(java.lang.String)">setEncoding</A></B>(java.lang.String&nbsp;encoding)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the character encoding coming from the xsl:output encoding stylesheet attribute.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setEscaping(boolean)">setEscaping</A></B>(boolean&nbsp;escape)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turns special character escaping on/off.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setIndentAmount(int)">setIndentAmount</A></B>(int&nbsp;m_indentAmount)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the m_indentAmount.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setLineSepUse(boolean)">setLineSepUse</A></B>(boolean&nbsp;use_sytem_line_break)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set if the operating systems end-of-line line separator should
be used when serializing.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setNewLine(char[])">setNewLine</A></B>(char[]&nbsp;eolChars)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the end of line characters to be used during serialization</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setOutputFormat(java.util.Properties)">setOutputFormat</A></B>(java.util.Properties&nbsp;format)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies an output format for this serializer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setOutputStream(java.io.OutputStream)">setOutputStream</A></B>(java.io.OutputStream&nbsp;output)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies an output stream to which the document should be
serialized.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setOutputStreamInternal(java.io.OutputStream, boolean)">setOutputStreamInternal</A></B>(java.io.OutputStream&nbsp;output,
boolean&nbsp;setByUser)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setProp(java.lang.String, java.lang.String, boolean)">setProp</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;val,
boolean&nbsp;defaultVal)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setTransformer(javax.xml.transform.Transformer)">setTransformer</A></B>(javax.xml.transform.Transformer&nbsp;transformer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the transformer associated with this serializer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setWriter(java.io.Writer)">setWriter</A></B>(java.io.Writer&nbsp;writer)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies a writer to which the document should be serialized.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#setWriterInternal(java.io.Writer, boolean)">setWriterInternal</A></B>(java.io.Writer&nbsp;writer,
boolean&nbsp;setByUser)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#shouldIndent()">shouldIndent</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tell if, based on space preservation constraints and the doIndent property,
if an indent should occur.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#skippedEntity(java.lang.String)">skippedEntity</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of a skipped entity.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startCDATA()">startCDATA</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report the start of a CDATA section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startDTD(java.lang.String, java.lang.String, java.lang.String)">startDTD</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;publicId,
java.lang.String&nbsp;systemId)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report the start of DTD declarations, if any.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startElement(java.lang.String)">startElement</A></B>(java.lang.String&nbsp;elementName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used to notify of the start of an element</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startElement(java.lang.String, java.lang.String, java.lang.String)">startElement</A></B>(java.lang.String&nbsp;elementNamespaceURI,
java.lang.String&nbsp;elementLocalName,
java.lang.String&nbsp;elementName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of the beginning of an element, additional
namespace or attribute information can occur before or after this call,
that is associated with this element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)">startElement</A></B>(java.lang.String&nbsp;namespaceURI,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;name,
org.xml.sax.Attributes&nbsp;atts)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Receive notification of the beginning of an element, although this is a
SAX method additional namespace or attribute information can occur before
or after this call, that is associated with this element.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startEntity(java.lang.String)">startEntity</A></B>(java.lang.String&nbsp;name)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Report the beginning of an entity.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startNonEscaping()">startNonEscaping</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts an un-escaping section.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startPrefixMapping(java.lang.String, java.lang.String)">startPrefixMapping</A></B>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Begin the scope of a prefix-URI Namespace mapping
just before another element is about to start.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startPrefixMapping(java.lang.String, java.lang.String, boolean)">startPrefixMapping</A></B>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri,
boolean&nbsp;shouldFlush)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Handle a prefix/uri mapping, which is associated with a startElement()
that is soon to follow.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">unparsedEntityDecl</A></B>(java.lang.String&nbsp;name,
java.lang.String&nbsp;pubID,
java.lang.String&nbsp;sysID,
java.lang.String&nbsp;notationName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#writeAttrString(java.io.Writer, java.lang.String, java.lang.String)">writeAttrString</A></B>(java.io.Writer&nbsp;writer,
java.lang.String&nbsp;string,
java.lang.String&nbsp;encoding)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified <var>string</var> after substituting <VAR>specials</VAR>,
and UTF-16 surrogates for chracter references <CODE>&amp;#xnn</CODE>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#writeNormalizedChars(char[], int, int, boolean, boolean)">writeNormalizedChars</A></B>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length,
boolean&nbsp;isCData,
boolean&nbsp;useSystemLineSeparator)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Normalize the characters, but don't escape.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#writeOutCleanChars(char[], int, int)">writeOutCleanChars</A></B>(char[]&nbsp;chars,
int&nbsp;i,
int&nbsp;lastProcessed)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/xml/serializer/ToStream.html#writeUTF16Surrogate(char, char[], int, int)">writeUTF16Surrogate</A></B>(char&nbsp;c,
char[]&nbsp;ch,
int&nbsp;i,
int&nbsp;end)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Once a surrogate has been detected, write out the pair of
characters if it is in the encoding, or if there is no
encoding, otherwise write out an entity reference
of the value of the unicode code point of the character
represented by the high/low surrogate pair.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.apache.xml.serializer.SerializerBase"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.apache.xml.serializer.<A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addAttribute(java.lang.String, java.lang.String)">addAttribute</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">addAttribute</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)">addAttribute</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addAttributes(org.xml.sax.Attributes)">addAttributes</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addXSLAttribute(java.lang.String, java.lang.String, java.lang.String)">addXSLAttribute</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#asContentHandler()">asContentHandler</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#asDOM3Serializer()">asDOM3Serializer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#asDOMSerializer()">asDOMSerializer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#characters(org.w3c.dom.Node)">characters</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#close()">close</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#comment(java.lang.String)">comment</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#documentIsEmpty()">documentIsEmpty</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#endEntity(java.lang.String)">endEntity</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#entityReference(java.lang.String)">entityReference</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#error(org.xml.sax.SAXParseException)">error</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fatalError(org.xml.sax.SAXParseException)">fatalError</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireCDATAEvent(char[], int, int)">fireCDATAEvent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireCharEvent(char[], int, int)">fireCharEvent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireCommentEvent(char[], int, int)">fireCommentEvent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireEndDoc()">fireEndDoc</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireEndElem(java.lang.String)">fireEndElem</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireEndEntity(java.lang.String)">fireEndEntity</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireEntityReference(java.lang.String)">fireEntityReference</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireEscapingEvent(java.lang.String, java.lang.String)">fireEscapingEvent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireStartDoc()">fireStartDoc</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireStartElem(java.lang.String)">fireStartElem</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#fireStartEntity(java.lang.String)">fireStartEntity</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getDoctypePublic()">getDoctypePublic</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getDoctypeSystem()">getDoctypeSystem</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getEncoding()">getEncoding</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getFirstCharLocName(java.lang.String)">getFirstCharLocName</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getIndent()">getIndent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getLocalName(java.lang.String)">getLocalName</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getMediaType()">getMediaType</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getNamespaceMappings()">getNamespaceMappings</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getNamespaceURI(java.lang.String, boolean)">getNamespaceURI</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getNamespaceURIFromPrefix(java.lang.String)">getNamespaceURIFromPrefix</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOmitXMLDeclaration()">getOmitXMLDeclaration</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOutputPropDefaultKeys()">getOutputPropDefaultKeys</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOutputProperty(java.lang.String)">getOutputProperty</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOutputPropertyDefault(java.lang.String)">getOutputPropertyDefault</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOutputPropertyNonDefault(java.lang.String)">getOutputPropertyNonDefault</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getOutputPropKeys()">getOutputPropKeys</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getPrefix(java.lang.String)">getPrefix</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getPrefixPart(java.lang.String)">getPrefixPart</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getStandalone()">getStandalone</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getTransformer()">getTransformer</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getVersion()">getVersion</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#initCDATA()">initCDATA</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#initCdataElems(java.lang.String)">initCdataElems</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#inTemporaryOutputState()">inTemporaryOutputState</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#isCdataSection()">isCdataSection</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#namespaceAfterStartElement(java.lang.String, java.lang.String)">namespaceAfterStartElement</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#patchName(java.lang.String)">patchName</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setDoctype(java.lang.String, java.lang.String)">setDoctype</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setDoctypePublic(java.lang.String)">setDoctypePublic</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setDoctypeSystem(java.lang.String)">setDoctypeSystem</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setDocumentLocator(org.xml.sax.Locator)">setDocumentLocator</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setIndent(boolean)">setIndent</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setMediaType(java.lang.String)">setMediaType</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setNamespaceMappings(org.apache.xml.serializer.NamespaceMappings)">setNamespaceMappings</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setOmitXMLDeclaration(boolean)">setOmitXMLDeclaration</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setOutputProperty(java.lang.String, java.lang.String)">setOutputProperty</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setOutputPropertyDefault(java.lang.String, java.lang.String)">setOutputPropertyDefault</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setSourceLocator(javax.xml.transform.SourceLocator)">setSourceLocator</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setStandalone(java.lang.String)">setStandalone</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setStandaloneInternal(java.lang.String)">setStandaloneInternal</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setVersion(java.lang.String)">setVersion</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#startDocument()">startDocument</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#startDocumentInternal()">startDocumentInternal</A>, <A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#warning(org.xml.sax.SAXParseException)">warning</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.apache.xml.serializer.ExtendedContentHandler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface org.apache.xml.serializer.<A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html" title="interface in org.apache.xml.serializer">ExtendedContentHandler</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#addUniqueAttribute(java.lang.String, java.lang.String, int)">addUniqueAttribute</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.xml.sax.ContentHandler"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface org.xml.sax.ContentHandler</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>endDocument, processingInstruction</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="COMMENT_BEGIN"><!-- --></A><H3>
COMMENT_BEGIN</H3>
<PRE>
private static final java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.58"><B>COMMENT_BEGIN</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xml.serializer.ToStream.COMMENT_BEGIN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="COMMENT_END"><!-- --></A><H3>
COMMENT_END</H3>
<PRE>
private static final java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.59"><B>COMMENT_END</B></A></PRE>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.xml.serializer.ToStream.COMMENT_END">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="m_disableOutputEscapingStates"><!-- --></A><H3>
m_disableOutputEscapingStates</H3>
<PRE>
protected <A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer">ToStream.BoolStack</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.62"><B>m_disableOutputEscapingStates</B></A></PRE>
<DL>
<DD>Stack to keep track of disabling output escaping.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_encodingInfo"><!-- --></A><H3>
m_encodingInfo</H3>
<PRE>
<A HREF="../../../../org/apache/xml/serializer/EncodingInfo.html" title="class in org.apache.xml.serializer">EncodingInfo</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.76"><B>m_encodingInfo</B></A></PRE>
<DL>
<DD>The encoding information associated with this serializer.
Although initially there is no encoding,
there is a dummy EncodingInfo object that will say
that every character is in the encoding. This is useful
for a serializer that is in temporary output state and has
no associated encoding. A serializer in final output state
will have an encoding, and will worry about whether
single chars or surrogate pairs of high/low chars form
characters in the output encoding.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_preserves"><!-- --></A><H3>
m_preserves</H3>
<PRE>
protected <A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer">ToStream.BoolStack</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.87"><B>m_preserves</B></A></PRE>
<DL>
<DD>Stack to keep track of whether or not we need to
preserve whitespace.
Used to push/pop values used for the field m_ispreserve, but
m_ispreserve is only relevant if m_doIndent is true.
If m_doIndent is false this field has no impact.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_ispreserve"><!-- --></A><H3>
m_ispreserve</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.97"><B>m_ispreserve</B></A></PRE>
<DL>
<DD>State flag to tell if preservation of whitespace
is important.
Used only in shouldIndent() but only if m_doIndent is true.
If m_doIndent is false this flag has no impact.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_isprevtext"><!-- --></A><H3>
m_isprevtext</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.107"><B>m_isprevtext</B></A></PRE>
<DL>
<DD>State flag that tells if the previous node processed
was text, so we can tell if we should preserve whitespace.
Used in endDocument() and shouldIndent() but
only if m_doIndent is true.
If m_doIndent is false this flag has no impact.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="s_systemLineSep"><!-- --></A><H3>
s_systemLineSep</H3>
<PRE>
private static final char[] <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.109"><B>s_systemLineSep</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_lineSep"><!-- --></A><H3>
m_lineSep</H3>
<PRE>
protected char[] <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.120"><B>m_lineSep</B></A></PRE>
<DL>
<DD>The system line separator for writing out line breaks.
The default value is from the system property,
but this value can be set through the xsl:output
extension attribute xalan:line-separator.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_lineSepUse"><!-- --></A><H3>
m_lineSepUse</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.126"><B>m_lineSepUse</B></A></PRE>
<DL>
<DD>True if the the system line separator is to be used.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_lineSepLen"><!-- --></A><H3>
m_lineSepLen</H3>
<PRE>
protected int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.132"><B>m_lineSepLen</B></A></PRE>
<DL>
<DD>The length of the line seperator, since the write is done
one character at a time.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_charInfo"><!-- --></A><H3>
m_charInfo</H3>
<PRE>
protected <A HREF="../../../../org/apache/xml/serializer/CharInfo.html" title="class in org.apache.xml.serializer">CharInfo</A> <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.138"><B>m_charInfo</B></A></PRE>
<DL>
<DD>Map that tells which characters should have special treatment, and it
provides character to entity name lookup.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_shouldFlush"><!-- --></A><H3>
m_shouldFlush</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.141"><B>m_shouldFlush</B></A></PRE>
<DL>
<DD>True if we control the buffer, and we should flush the output on endDocument.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_spaceBeforeClose"><!-- --></A><H3>
m_spaceBeforeClose</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.146"><B>m_spaceBeforeClose</B></A></PRE>
<DL>
<DD>Add space before '/>' for XHTML.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_startNewLine"><!-- --></A><H3>
m_startNewLine</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.154"><B>m_startNewLine</B></A></PRE>
<DL>
<DD>Flag to signal that a newline should be added.
Used only in indent() which is called only if m_doIndent is true.
If m_doIndent is false this flag has no impact.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_inDoctype"><!-- --></A><H3>
m_inDoctype</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.159"><B>m_inDoctype</B></A></PRE>
<DL>
<DD>Tells if we're in an internal document type subset.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_isUTF8"><!-- --></A><H3>
m_isUTF8</H3>
<PRE>
boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.164"><B>m_isUTF8</B></A></PRE>
<DL>
<DD>Flag to quickly tell if the encoding is UTF8.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_cdataStartCalled"><!-- --></A><H3>
m_cdataStartCalled</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.170"><B>m_cdataStartCalled</B></A></PRE>
<DL>
<DD>remembers if we are in between the startCDATA() and endCDATA() callbacks
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_expandDTDEntities"><!-- --></A><H3>
m_expandDTDEntities</H3>
<PRE>
private boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.176"><B>m_expandDTDEntities</B></A></PRE>
<DL>
<DD>If this flag is true DTD entity references are not left as-is,
which is exiting older behavior.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_escaping"><!-- --></A><H3>
m_escaping</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.231"><B>m_escaping</B></A></PRE>
<DL>
<DD>Taken from XSLTC
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_outputStream"><!-- --></A><H3>
m_outputStream</H3>
<PRE>
java.io.OutputStream <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.272"><B>m_outputStream</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="m_writer_set_by_user"><!-- --></A><H3>
m_writer_set_by_user</H3>
<PRE>
private boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.654"><B>m_writer_set_by_user</B></A></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ToStream()"><!-- --></A><H3>
ToStream</H3>
<PRE>
public <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.182"><B>ToStream</B></A>()</PRE>
<DL>
<DD>Default constructor
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="closeCDATA()"><!-- --></A><H3>
closeCDATA</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.191"><B>closeCDATA</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>This helper method to writes out "]]>" when closing a CDATA section.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="serialize(org.w3c.dom.Node)"><!-- --></A><H3>
serialize</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.212"><B>serialize</B></A>(org.w3c.dom.Node&nbsp;node)
throws java.io.IOException</PRE>
<DL>
<DD>Serializes the DOM node. Throws an exception only if an I/O
exception occured while serializing.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>node</CODE> - Node to serialize.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - An I/O exception occured while serializing</DL>
</DD>
</DL>
<HR>
<A NAME="flushWriter()"><!-- --></A><H3>
flushWriter</H3>
<PRE>
protected final void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.238"><B>flushWriter</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Flush the formatter's result stream.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getOutputStream()"><!-- --></A><H3>
getOutputStream</H3>
<PRE>
public java.io.OutputStream <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.279"><B>getOutputStream</B></A>()</PRE>
<DL>
<DD>Get the output stream where the events will be serialized to.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>reference to the result stream, or null of only a writer was
set.</DL>
</DD>
</DL>
<HR>
<A NAME="elementDecl(java.lang.String, java.lang.String)"><!-- --></A><H3>
elementDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.299"><B>elementDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;model)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report an element type declaration.
<p>The content model will consist of the string "EMPTY", the
string "ANY", or a parenthesised group, optionally followed
by an occurrence indicator. The model will be normalized so
that all whitespace is removed,and will include the enclosing
parentheses.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The element type name.<DD><CODE>model</CODE> - The content model as a normalized string.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.</DL>
</DD>
</DL>
<HR>
<A NAME="internalEntityDecl(java.lang.String, java.lang.String)"><!-- --></A><H3>
internalEntityDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.336"><B>internalEntityDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;value)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report an internal entity declaration.
<p>Only the effective (first) declaration for each entity
will be reported.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the entity. If it is a parameter
entity, the name will begin with '%'.<DD><CODE>value</CODE> - The replacement text of the entity.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)"><CODE>externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)</CODE></A>,
<CODE>DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="outputEntityDecl(java.lang.String, java.lang.String)"><!-- --></A><H3>
outputEntityDecl</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.362"><B>outputEntityDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;value)
throws java.io.IOException</PRE>
<DL>
<DD>Output the doc type declaration.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - non-null reference to document type name.
NEEDSDOC @param value
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="outputLineSep()"><!-- --></A><H3>
outputLineSep</H3>
<PRE>
protected final void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.378"><B>outputLineSep</B></A>()
throws java.io.IOException</PRE>
<DL>
<DD>Output a system-dependent line break.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setProp(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
setProp</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.384"><B>setProp</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;val,
boolean&nbsp;defaultVal)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setProp(java.lang.String, java.lang.String, boolean)">setProp</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the property, e.g. "{http://myprop}indent-tabs" or "indent".<DD><CODE>val</CODE> - The value of the property, e.g. "4"<DD><CODE>defaultVal</CODE> - true if this is a default value being set for the property as
opposed to a user define on, set say explicitly in the stylesheet or via JAXP</DL>
</DD>
</DL>
<HR>
<A NAME="setOutputFormat(java.util.Properties)"><!-- --></A><H3>
setOutputFormat</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.560"><B>setOutputFormat</B></A>(java.util.Properties&nbsp;format)</PRE>
<DL>
<DD>Specifies an output format for this serializer. It the
serializer has already been associated with an output format,
it will switch to the new format. This method should not be
called while the serializer is in the process of serializing
a document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>format</CODE> - The output format to use</DL>
</DD>
</DL>
<HR>
<A NAME="getOutputFormat()"><!-- --></A><H3>
getOutputFormat</H3>
<PRE>
public java.util.Properties <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.616"><B>getOutputFormat</B></A>()</PRE>
<DL>
<DD>Returns the output format for this serializer.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The output format in use</DL>
</DD>
</DL>
<HR>
<A NAME="setWriter(java.io.Writer)"><!-- --></A><H3>
setWriter</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.649"><B>setWriter</B></A>(java.io.Writer&nbsp;writer)</PRE>
<DL>
<DD>Specifies a writer to which the document should be serialized.
This method should not be called while the serializer is in
the process of serializing a document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - The output writer stream</DL>
</DD>
</DL>
<HR>
<A NAME="setWriterInternal(java.io.Writer, boolean)"><!-- --></A><H3>
setWriterInternal</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.655"><B>setWriterInternal</B></A>(java.io.Writer&nbsp;writer,
boolean&nbsp;setByUser)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setLineSepUse(boolean)"><!-- --></A><H3>
setLineSepUse</H3>
<PRE>
public boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.688"><B>setLineSepUse</B></A>(boolean&nbsp;use_sytem_line_break)</PRE>
<DL>
<DD>Set if the operating systems end-of-line line separator should
be used when serializing. If set false NL character
(decimal 10) is left alone, otherwise the new-line will be replaced on
output with the systems line separator. For example on UNIX this is
NL, while on Windows it is two characters, CR NL, where CR is the
carriage-return (decimal 13).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>use_sytem_line_break</CODE> - True if an input NL is replaced with the
operating systems end-of-line separator.
<DT><B>Returns:</B><DD>The previously set value of the serializer.</DL>
</DD>
</DL>
<HR>
<A NAME="setOutputStream(java.io.OutputStream)"><!-- --></A><H3>
setOutputStream</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.706"><B>setOutputStream</B></A>(java.io.OutputStream&nbsp;output)</PRE>
<DL>
<DD>Specifies an output stream to which the document should be
serialized. This method should not be called while the
serializer is in the process of serializing a document.
<p>
The encoding specified in the output properties is used, or
if no encoding was specified, the default for the selected
output method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>output</CODE> - The output stream</DL>
</DD>
</DL>
<HR>
<A NAME="setOutputStreamInternal(java.io.OutputStream, boolean)"><!-- --></A><H3>
setOutputStreamInternal</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.711"><B>setOutputStreamInternal</B></A>(java.io.OutputStream&nbsp;output,
boolean&nbsp;setByUser)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setEscaping(boolean)"><!-- --></A><H3>
setEscaping</H3>
<PRE>
public boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.768"><B>setEscaping</B></A>(boolean&nbsp;escape)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setEscaping(boolean)">SerializationHandler</A></CODE></B></DD>
<DD>Turns special character escaping on/off.
Note that characters will
never, even if this option is set to 'true', be escaped within
CDATA sections in output XML documents.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>escape</CODE> - true if escaping is to be set on.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setEscaping(boolean)"><CODE>SerializationHandler.setEscaping(boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="indent(int)"><!-- --></A><H3>
indent</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.785"><B>indent</B></A>(int&nbsp;depth)
throws java.io.IOException</PRE>
<DL>
<DD>Might print a newline character and the indentation amount
of the given depth.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>depth</CODE> - the indentation depth (element nesting depth)
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - if an error occurs during writing.
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="indent()"><!-- --></A><H3>
indent</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.803"><B>indent</B></A>()
throws java.io.IOException</PRE>
<DL>
<DD>Indent at the current element nesting depth.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="printSpace(int)"><!-- --></A><H3>
printSpace</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.813"><B>printSpace</B></A>(int&nbsp;n)
throws java.io.IOException</PRE>
<DL>
<DD>Prints <var>n</var> spaces.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>n</CODE> - Number of spaces to print.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - if an error occurs when writing.
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="attributeDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
attributeDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.842"><B>attributeDecl</B></A>(java.lang.String&nbsp;eName,
java.lang.String&nbsp;aName,
java.lang.String&nbsp;type,
java.lang.String&nbsp;valueDefault,
java.lang.String&nbsp;value)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report an attribute type declaration.
<p>Only the effective (first) declaration for an attribute will
be reported. The type will be one of the strings "CDATA",
"ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY",
"ENTITIES", or "NOTATION", or a parenthesized token group with
the separator "|" and all whitespace removed.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>eName</CODE> - The name of the associated element.<DD><CODE>aName</CODE> - The name of the attribute.<DD><CODE>type</CODE> - A string representing the attribute type.<DD><CODE>valueDefault</CODE> - A string representing the attribute default
("#IMPLIED", "#REQUIRED", or "#FIXED") or null if
none of these applies.<DD><CODE>value</CODE> - A string representing the attribute's default value,
or null if there is none.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.</DL>
</DD>
</DL>
<HR>
<A NAME="getWriter()"><!-- --></A><H3>
getWriter</H3>
<PRE>
public java.io.Writer <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.887"><B>getWriter</B></A>()</PRE>
<DL>
<DD>Get the character stream where the events will be serialized to.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Reference to the result Writer, or null.</DL>
</DD>
</DL>
<HR>
<A NAME="externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
externalEntityDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.907"><B>externalEntityDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;publicId,
java.lang.String&nbsp;systemId)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report a parsed external entity declaration.
<p>Only the effective (first) declaration for each entity
will be reported.</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the entity. If it is a parameter
entity, the name will begin with '%'.<DD><CODE>publicId</CODE> - The declared public identifier of the entity, or
null if none was declared.<DD><CODE>systemId</CODE> - The declared system identifier of the entity.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#internalEntityDecl(java.lang.String, java.lang.String)"><CODE>internalEntityDecl(java.lang.String, java.lang.String)</CODE></A>,
<CODE>DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="escapingNotNeeded(char)"><!-- --></A><H3>
escapingNotNeeded</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.939"><B>escapingNotNeeded</B></A>(char&nbsp;ch)</PRE>
<DL>
<DD>Tell if this character can be written without escaping.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="writeUTF16Surrogate(char, char[], int, int)"><!-- --></A><H3>
writeUTF16Surrogate</H3>
<PRE>
protected int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.982"><B>writeUTF16Surrogate</B></A>(char&nbsp;c,
char[]&nbsp;ch,
int&nbsp;i,
int&nbsp;end)
throws java.io.IOException</PRE>
<DL>
<DD>Once a surrogate has been detected, write out the pair of
characters if it is in the encoding, or if there is no
encoding, otherwise write out an entity reference
of the value of the unicode code point of the character
represented by the high/low surrogate pair.
<p>
An exception is thrown if there is no low surrogate in the pair,
because the array ends unexpectely, or if the low char is there
but its value is such that it is not a low surrogate.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the first (high) part of the surrogate, which
must be confirmed before calling this method.<DD><CODE>ch</CODE> - Character array.<DD><CODE>i</CODE> - position Where the surrogate was detected.<DD><CODE>end</CODE> - The end index of the significant characters.
<DT><B>Returns:</B><DD>0 if the pair of characters was written out as-is,
the unicode code point of the character represented by
the surrogate pair if an entity reference with that value
was written out.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>org.xml.sax.SAXException</CODE> - if invalid UTF-16 surrogate detected.</DL>
</DD>
</DL>
<HR>
<A NAME="accumDefaultEntity(java.io.Writer, char, int, char[], int, boolean, boolean)"><!-- --></A><H3>
accumDefaultEntity</H3>
<PRE>
int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1056"><B>accumDefaultEntity</B></A>(java.io.Writer&nbsp;writer,
char&nbsp;ch,
int&nbsp;i,
char[]&nbsp;chars,
int&nbsp;len,
boolean&nbsp;fromTextNode,
boolean&nbsp;escLF)
throws java.io.IOException</PRE>
<DL>
<DD>Handle one of the default entities, return false if it
is not a default entity.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - character to be escaped.<DD><CODE>i</CODE> - index into character array.<DD><CODE>chars</CODE> - non-null reference to character array.<DD><CODE>len</CODE> - length of chars.<DD><CODE>fromTextNode</CODE> - true if the characters being processed
are from a text node, false if they are from an attribute value<DD><CODE>escLF</CODE> - true if the linefeed should be escaped.
<DT><B>Returns:</B><DD>i+1 if the character was written, else i.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeNormalizedChars(char[], int, int, boolean, boolean)"><!-- --></A><H3>
writeNormalizedChars</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1106"><B>writeNormalizedChars</B></A>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length,
boolean&nbsp;isCData,
boolean&nbsp;useSystemLineSeparator)
throws java.io.IOException,
org.xml.sax.SAXException</PRE>
<DL>
<DD>Normalize the characters, but don't escape.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - The characters from the XML document.<DD><CODE>start</CODE> - The start position in the array.<DD><CODE>length</CODE> - The number of characters to read from the array.<DD><CODE>isCData</CODE> - true if a CDATA block should be built around the characters.<DD><CODE>useSystemLineSeparator</CODE> - true if the operating systems
end-of-line separator should be output rather than a new-line character.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="endNonEscaping()"><!-- --></A><H3>
endNonEscaping</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1208"><B>endNonEscaping</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Ends an un-escaping section.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startNonEscaping()"><CODE>startNonEscaping()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="startNonEscaping()"><!-- --></A><H3>
startNonEscaping</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1223"><B>startNonEscaping</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Starts an un-escaping section. All characters printed within an un-
escaping section are printed as is, without escaping special characters
into entity references. Only XML and HTML serializers need to support
this method.
<p> The contents of the un-escaping section will be delivered through the
regular <tt>characters</tt> event.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="cdata(char[], int, int)"><!-- --></A><H3>
cdata</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1255"><B>cdata</B></A>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of cdata.
<p>The Parser will call this method to report each chunk of
character data. SAX parsers may return all contiguous character
data in a single chunk, or they may split it into several
chunks; however, all of the characters in any single event
must come from the same external entity, so that the Locator
provides useful information.</p>
<p>The application must not attempt to read from the array
outside of the specified range.</p>
<p>Note that some parsers will report whitespace using the
ignorableWhitespace() method rather than this one (validating
parsers must do so).</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - The characters from the XML document.<DD><CODE>start</CODE> - The start position in the array.<DD><CODE>length</CODE> - The number of characters to read from the array.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ignorableWhitespace(char[], int, int)"><CODE>ignorableWhitespace(char[], int, int)</CODE></A>,
<CODE>Locator</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isEscapingDisabled()"><!-- --></A><H3>
isEscapingDisabled</H3>
<PRE>
private boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1328"><B>isEscapingDisabled</B></A>()</PRE>
<DL>
<DD>Tell if the character escaping should be disabled for the current state.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the character escaping should be disabled.</DL>
</DD>
</DL>
<HR>
<A NAME="charactersRaw(char[], int, int)"><!-- --></A><H3>
charactersRaw</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1343"><B>charactersRaw</B></A>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>If available, when the disable-output-escaping attribute is used,
output raw text without escaping.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - The characters from the XML document.<DD><CODE>start</CODE> - The start position in the array.<DD><CODE>length</CODE> - The number of characters to read from the array.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="characters(char[], int, int)"><!-- --></A><H3>
characters</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1395"><B>characters</B></A>(char[]&nbsp;chars,
int&nbsp;start,
int&nbsp;length)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of character data.
<p>The Parser will call this method to report each chunk of
character data. SAX parsers may return all contiguous character
data in a single chunk, or they may split it into several
chunks; however, all of the characters in any single event
must come from the same external entity, so that the Locator
provides useful information.</p>
<p>The application must not attempt to read from the array
outside of the specified range.</p>
<p>Note that some parsers will report whitespace using the
ignorableWhitespace() method rather than this one (validating
parsers must do so).</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>chars</CODE> - The characters from the XML document.<DD><CODE>start</CODE> - The start position in the array.<DD><CODE>length</CODE> - The number of characters to read from the array.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#ignorableWhitespace(char[], int, int)"><CODE>ignorableWhitespace(char[], int, int)</CODE></A>,
<CODE>Locator</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="processLineFeed(char[], int, int, java.io.Writer)"><!-- --></A><H3>
processLineFeed</H3>
<PRE>
private int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1639"><B>processLineFeed</B></A>(char[]&nbsp;chars,
int&nbsp;i,
int&nbsp;lastProcessed,
java.io.Writer&nbsp;writer)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeOutCleanChars(char[], int, int)"><!-- --></A><H3>
writeOutCleanChars</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1654"><B>writeOutCleanChars</B></A>(char[]&nbsp;chars,
int&nbsp;i,
int&nbsp;lastProcessed)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isCharacterInC0orC1Range(char)"><!-- --></A><H3>
isCharacterInC0orC1Range</H3>
<PRE>
private static boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1673"><B>isCharacterInC0orC1Range</B></A>(char&nbsp;ch)</PRE>
<DL>
<DD>This method checks if a given character is between C0 or C1 range
of Control characters.
This method is added to support Control Characters for XML 1.1
If a given character is TAB (0x09), LF (0x0A) or CR (0x0D), this method
return false. Since they are whitespace characters, no special processing is needed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> -
<DT><B>Returns:</B><DD>boolean</DL>
</DD>
</DL>
<HR>
<A NAME="isNELorLSEPCharacter(char)"><!-- --></A><H3>
isNELorLSEPCharacter</H3>
<PRE>
private static boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1688"><B>isNELorLSEPCharacter</B></A>(char&nbsp;ch)</PRE>
<DL>
<DD>This method checks if a given character either NEL (0x85) or LSEP (0x2028)
These are new end of line charcters added in XML 1.1. These characters must be
written as Numeric Character References (NCR) in XML 1.1 output document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> -
<DT><B>Returns:</B><DD>boolean</DL>
</DD>
</DL>
<HR>
<A NAME="processDirty(char[], int, int, char, int, boolean)"><!-- --></A><H3>
processDirty</H3>
<PRE>
private int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1705"><B>processDirty</B></A>(char[]&nbsp;chars,
int&nbsp;end,
int&nbsp;i,
char&nbsp;ch,
int&nbsp;lastDirty,
boolean&nbsp;fromTextNode)
throws java.io.IOException</PRE>
<DL>
<DD>Process a dirty character and any preeceding clean characters
that were not yet processed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>chars</CODE> - array of characters being processed<DD><CODE>end</CODE> - one (1) beyond the last character
in chars to be processed<DD><CODE>i</CODE> - the index of the dirty character<DD><CODE>ch</CODE> - the character in chars[i]<DD><CODE>lastDirty</CODE> - the last dirty character previous to i<DD><CODE>fromTextNode</CODE> - true if the characters being processed are
from a text node, false if they are from an attribute value.
<DT><B>Returns:</B><DD>the index of the last character processed
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="characters(java.lang.String)"><!-- --></A><H3>
characters</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1752"><B>characters</B></A>(java.lang.String&nbsp;s)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of character data.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The string of characters to process.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="accumDefaultEscape(java.io.Writer, char, int, char[], int, boolean, boolean)"><!-- --></A><H3>
accumDefaultEscape</H3>
<PRE>
private int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1782"><B>accumDefaultEscape</B></A>(java.io.Writer&nbsp;writer,
char&nbsp;ch,
int&nbsp;i,
char[]&nbsp;chars,
int&nbsp;len,
boolean&nbsp;fromTextNode,
boolean&nbsp;escLF)
throws java.io.IOException</PRE>
<DL>
<DD>Escape and writer.write a character.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - character to be escaped.<DD><CODE>i</CODE> - index into character array.<DD><CODE>chars</CODE> - non-null reference to character array.<DD><CODE>len</CODE> - length of chars.<DD><CODE>fromTextNode</CODE> - true if the characters being processed are
from a text node, false if the characters being processed are from
an attribute value.<DD><CODE>escLF</CODE> - true if the linefeed should be escaped.
<DT><B>Returns:</B><DD>i+1 if a character was written, i+2 if two characters
were written out, else return i.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)"><!-- --></A><H3>
startElement</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1894"><B>startElement</B></A>(java.lang.String&nbsp;namespaceURI,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;name,
org.xml.sax.Attributes&nbsp;atts)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of the beginning of an element, although this is a
SAX method additional namespace or attribute information can occur before
or after this call, that is associated with this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.<DD><CODE>localName</CODE> - The local name (without prefix), or the
empty string if Namespace processing is not being
performed.<DD><CODE>name</CODE> - The element type name.<DD><CODE>atts</CODE> - The attributes attached to the element, if any.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><CODE>ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)</CODE>,
<CODE>ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)</CODE>,
<CODE>AttributeList</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
startElement</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1983"><B>startElement</B></A>(java.lang.String&nbsp;elementNamespaceURI,
java.lang.String&nbsp;elementLocalName,
java.lang.String&nbsp;elementName)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of the beginning of an element, additional
namespace or attribute information can occur before or after this call,
that is associated with this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elementNamespaceURI</CODE> - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.<DD><CODE>elementLocalName</CODE> - The local name (without prefix), or the
empty string if Namespace processing is not being
performed.<DD><CODE>elementName</CODE> - The element type name.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><CODE>ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)</CODE>,
<CODE>ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)</CODE>,
<CODE>AttributeList</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startElement(java.lang.String)"><!-- --></A><H3>
startElement</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.1992"><B>startElement</B></A>(java.lang.String&nbsp;elementName)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#startElement(java.lang.String)">ExtendedContentHandler</A></CODE></B></DD>
<DD>This method is used to notify of the start of an element
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elementName</CODE> - the fully qualified name of the element
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="outputDocTypeDecl(java.lang.String, boolean)"><!-- --></A><H3>
outputDocTypeDecl</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2005"><B>outputDocTypeDecl</B></A>(java.lang.String&nbsp;name,
boolean&nbsp;closeDecl)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Output the doc type declaration.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - non-null reference to document type name.
NEEDSDOC @param closeDecl
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="processAttributes(java.io.Writer, int)"><!-- --></A><H3>
processAttributes</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2061"><B>processAttributes</B></A>(java.io.Writer&nbsp;writer,
int&nbsp;nAttrs)
throws java.io.IOException,
org.xml.sax.SAXException</PRE>
<DL>
<DD>Process the attributes, which means to write out the currently
collected attributes to the writer. The attributes are not
cleared by this method
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer to write processed attributes to.<DD><CODE>nAttrs</CODE> - the number of attributes in m_attributes
to be processed
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="writeAttrString(java.io.Writer, java.lang.String, java.lang.String)"><!-- --></A><H3>
writeAttrString</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2092"><B>writeAttrString</B></A>(java.io.Writer&nbsp;writer,
java.lang.String&nbsp;string,
java.lang.String&nbsp;encoding)
throws java.io.IOException</PRE>
<DL>
<DD>Returns the specified <var>string</var> after substituting <VAR>specials</VAR>,
and UTF-16 surrogates for chracter references <CODE>&amp;#xnn</CODE>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>string</CODE> - String to convert to XML format.<DD><CODE>encoding</CODE> - CURRENTLY NOT IMPLEMENTED.
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="endElement(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
endElement</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2203"><B>endElement</B></A>(java.lang.String&nbsp;namespaceURI,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;name)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of the end of an element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - The Namespace URI, or the empty string if the
element has no Namespace URI or if Namespace
processing is not being performed.<DD><CODE>localName</CODE> - The local name (without prefix), or the
empty string if Namespace processing is not being
performed.<DD><CODE>name</CODE> - The element type name
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="endElement(java.lang.String)"><!-- --></A><H3>
endElement</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2274"><B>endElement</B></A>(java.lang.String&nbsp;name)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of the end of an element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The element type name
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.</DL>
</DD>
</DL>
<HR>
<A NAME="startPrefixMapping(java.lang.String, java.lang.String)"><!-- --></A><H3>
startPrefixMapping</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2294"><B>startPrefixMapping</B></A>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Begin the scope of a prefix-URI Namespace mapping
just before another element is about to start.
This call will close any open tags so that the prefix mapping
will not apply to the current element, but the up comming child.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The Namespace prefix being declared.<DD><CODE>uri</CODE> - The Namespace URI the prefix is mapped to.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The client may throw
an exception during processing.<DT><B>See Also:</B><DD><CODE>ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startPrefixMapping(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
startPrefixMapping</H3>
<PRE>
public boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2322"><B>startPrefixMapping</B></A>(java.lang.String&nbsp;prefix,
java.lang.String&nbsp;uri,
boolean&nbsp;shouldFlush)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Handle a prefix/uri mapping, which is associated with a startElement()
that is soon to follow. Need to close any open start tag to make
sure than any name space attributes due to this event are associated wih
the up comming element, not the current one.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The Namespace prefix being declared.<DD><CODE>uri</CODE> - The Namespace URI the prefix is mapped to.<DD><CODE>shouldFlush</CODE> - true if any open tags need to be closed first, this
will impact which element the mapping applies to (open parent, or its up
comming child)
<DT><B>Returns:</B><DD>returns true if the call made a change to the current
namespace information, false if it did not change anything, e.g. if the
prefix/namespace mapping was already in scope from before.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The client may throw
an exception during processing.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ExtendedContentHandler.html#startPrefixMapping(java.lang.String, java.lang.String, boolean)"><CODE>ExtendedContentHandler.startPrefixMapping(java.lang.String, java.lang.String, boolean)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="comment(char[], int, int)"><!-- --></A><H3>
comment</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2390"><B>comment</B></A>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of an XML comment anywhere in the document. This
callback will be used for comments inside or outside the document
element, including comments in the external DTD subset (if read).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - An array holding the characters in the comment.<DD><CODE>start</CODE> - The starting position in the array.<DD><CODE>length</CODE> - The number of characters to use from the array.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.</DL>
</DD>
</DL>
<HR>
<A NAME="endCDATA()"><!-- --></A><H3>
endCDATA</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2471"><B>endCDATA</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report the end of a CDATA section.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startCDATA()"><CODE>startCDATA()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="endDTD()"><!-- --></A><H3>
endDTD</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2483"><B>endDTD</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report the end of DTD declarations.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#startDTD(java.lang.String, java.lang.String, java.lang.String)"><CODE>startDTD(java.lang.String, java.lang.String, java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="endPrefixMapping(java.lang.String)"><!-- --></A><H3>
endPrefixMapping</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2517"><B>endPrefixMapping</B></A>(java.lang.String&nbsp;prefix)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>End the scope of a prefix-URI Namespace mapping.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The prefix that was being mapping.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The client may throw
an exception during processing.<DT><B>See Also:</B><DD><CODE>ContentHandler.endPrefixMapping(java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="ignorableWhitespace(char[], int, int)"><!-- --></A><H3>
ignorableWhitespace</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2535"><B>ignorableWhitespace</B></A>(char[]&nbsp;ch,
int&nbsp;start,
int&nbsp;length)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of ignorable whitespace in element content.
Not sure how to get this invoked quite yet.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ch</CODE> - The characters from the XML document.<DD><CODE>start</CODE> - The start position in the array.<DD><CODE>length</CODE> - The number of characters to read from the array.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly
wrapping another exception.
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#characters(char[], int, int)"><CODE>characters(char[], int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="skippedEntity(java.lang.String)"><!-- --></A><H3>
skippedEntity</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2555"><B>skippedEntity</B></A>(java.lang.String&nbsp;name)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Receive notification of a skipped entity.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the skipped entity. If it is a
parameter entity, the name will begin with '%',
and if it is the external DTD subset, it will be the string
"[dtd]".
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - Any SAX exception, possibly wrapping
another exception.<DT><B>See Also:</B><DD><CODE>ContentHandler.skippedEntity(java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startCDATA()"><!-- --></A><H3>
startCDATA</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2565"><B>startCDATA</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report the start of a CDATA section.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endCDATA()"><CODE>endCDATA()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="startEntity(java.lang.String)"><!-- --></A><H3>
startEntity</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2585"><B>startEntity</B></A>(java.lang.String&nbsp;name)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report the beginning of an entity.
The start and end of the document entity are not reported.
The start and end of the external DTD subset are reported
using the pseudo-name "[dtd]". All other events must be
properly nested within start/end entity events.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the entity. If it is a parameter
entity, the name will begin with '%'.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#endEntity(java.lang.String)"><CODE>SerializerBase.endEntity(java.lang.String)</CODE></A>,
<CODE>DeclHandler.internalEntityDecl(java.lang.String, java.lang.String)</CODE>,
<CODE>DeclHandler.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="closeStartTag()"><!-- --></A><H3>
closeStartTag</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2609"><B>closeStartTag</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>For the enclosing elements starting tag write out
out any attributes followed by ">"
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="startDTD(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
startDTD</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2665"><B>startDTD</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;publicId,
java.lang.String&nbsp;systemId)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Report the start of DTD declarations, if any.
Any declarations are assumed to be in the internal subset unless
otherwise indicated.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The document type name.<DD><CODE>publicId</CODE> - The declared public identifier for the
external DTD subset, or null if none was declared.<DD><CODE>systemId</CODE> - The declared system identifier for the
external DTD subset, or null if none was declared.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE> - The application may raise an
exception.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/ToStream.html#endDTD()"><CODE>endDTD()</CODE></A>,
<A HREF="../../../../org/apache/xml/serializer/ToStream.html#startEntity(java.lang.String)"><CODE>startEntity(java.lang.String)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getIndentAmount()"><!-- --></A><H3>
getIndentAmount</H3>
<PRE>
public int <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2679"><B>getIndentAmount</B></A>()</PRE>
<DL>
<DD>Returns the m_indentAmount.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/XSLOutputAttributes.html#getIndentAmount()">getIndentAmount</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/XSLOutputAttributes.html" title="interface in org.apache.xml.serializer">XSLOutputAttributes</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#getIndentAmount()">getIndentAmount</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>int</DL>
</DD>
</DL>
<HR>
<A NAME="setIndentAmount(int)"><!-- --></A><H3>
setIndentAmount</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2689"><B>setIndentAmount</B></A>(int&nbsp;m_indentAmount)</PRE>
<DL>
<DD>Sets the m_indentAmount.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setIndentAmount(int)">setIndentAmount</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html" title="interface in org.apache.xml.serializer">SerializationHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setIndentAmount(int)">setIndentAmount</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>m_indentAmount</CODE> - The m_indentAmount to set</DL>
</DD>
</DL>
<HR>
<A NAME="shouldIndent()"><!-- --></A><H3>
shouldIndent</H3>
<PRE>
protected boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2700"><B>shouldIndent</B></A>()</PRE>
<DL>
<DD>Tell if, based on space preservation constraints and the doIndent property,
if an indent should occur.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if an indent should occur.</DL>
</DD>
</DL>
<HR>
<A NAME="setCdataSectionElements(java.lang.String, java.util.Properties)"><!-- --></A><H3>
setCdataSectionElements</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2721"><B>setCdataSectionElements</B></A>(java.lang.String&nbsp;key,
java.util.Properties&nbsp;props)</PRE>
<DL>
<DD>Searches for the list of qname properties with the specified key in the
property list. If the key is not found in this property list, the default
property list, and its defaults, recursively, are then checked. The
method returns <code>null</code> if the property is not found.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the property key.<DD><CODE>props</CODE> - the list of properties to search in.
Sets the vector of local-name/URI pairs of the cdata section elements
specified in the cdata-section-elements property.
This method is essentially a copy of getQNameProperties() from
OutputProperties. Eventually this method should go away and a call
to setCdataSectionElements(Vector v) should be made directly.</DL>
</DD>
</DL>
<HR>
<A NAME="addCdataSectionElement(java.lang.String, java.util.Vector)"><!-- --></A><H3>
addCdataSectionElement</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2779"><B>addCdataSectionElement</B></A>(java.lang.String&nbsp;URI_and_localName,
java.util.Vector&nbsp;v)</PRE>
<DL>
<DD>Adds a URI/LocalName pair of strings to the list.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>URI_and_localName</CODE> - String of the form "{uri}local" or "local"</DL>
</DD>
</DL>
<HR>
<A NAME="setCdataSectionElements(java.util.Vector)"><!-- --></A><H3>
setCdataSectionElements</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2808"><B>setCdataSectionElements</B></A>(java.util.Vector&nbsp;URI_and_localNames)</PRE>
<DL>
<DD>Remembers the cdata sections specified in the cdata-section-elements.
The "official way to set URI and localName pairs.
This method should be used by both Xalan and XSLTC.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>URI_and_localNames</CODE> - a vector of pairs of Strings (URI/local)</DL>
</DD>
</DL>
<HR>
<A NAME="ensureAttributesNamespaceIsDeclared(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
ensureAttributesNamespaceIsDeclared</H3>
<PRE>
protected java.lang.String <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2849"><B>ensureAttributesNamespaceIsDeclared</B></A>(java.lang.String&nbsp;ns,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;rawName)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Makes sure that the namespace URI for the given qualified attribute name
is declared.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ns</CODE> - the namespace URI<DD><CODE>rawName</CODE> - the qualified name
<DT><B>Returns:</B><DD>returns null if no action is taken, otherwise it returns the
prefix used in declaring the namespace.
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="ensurePrefixIsDeclared(java.lang.String, java.lang.String)"><!-- --></A><H3>
ensurePrefixIsDeclared</H3>
<PRE>
void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2916"><B>ensurePrefixIsDeclared</B></A>(java.lang.String&nbsp;ns,
java.lang.String&nbsp;rawName)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="flushPending()"><!-- --></A><H3>
flushPending</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2954"><B>flushPending</B></A>()
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>This method flushes any pending events, which can be startDocument()
closing the opening tag of an element, or closing an open CDATA section.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setContentHandler(org.xml.sax.ContentHandler)"><!-- --></A><H3>
setContentHandler</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.2982"><B>setContentHandler</B></A>(org.xml.sax.ContentHandler&nbsp;ch)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setContentHandler(org.xml.sax.ContentHandler)">SerializationHandler</A></CODE></B></DD>
<DD>Set the SAX Content handler that the serializer sends its output to. This
method only applies to a ToSAXHandler, not to a ToStream serializer.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/Serializer.html#asContentHandler()"><CODE>Serializer.asContentHandler()</CODE></A>,
<A HREF="../../../../org/apache/xml/serializer/ToSAXHandler.html" title="class in org.apache.xml.serializer"><CODE>ToSAXHandler</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="addAttributeAlways(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
addAttributeAlways</H3>
<PRE>
public boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3008"><B>addAttributeAlways</B></A>(java.lang.String&nbsp;uri,
java.lang.String&nbsp;localName,
java.lang.String&nbsp;rawName,
java.lang.String&nbsp;type,
java.lang.String&nbsp;value,
boolean&nbsp;xslAttribute)</PRE>
<DL>
<DD>Adds the given attribute to the set of attributes, even if there is
no currently open element. This is useful if a SAX startPrefixMapping()
should need to add an attribute before the element name is seen.
This method is a copy of its super classes method, except that some
tracing of events is done. This is so the tracing is only done for
stream serializers, not for SAX ones.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#addAttributeAlways(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)">addAttributeAlways</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the URI of the attribute<DD><CODE>localName</CODE> - the local name of the attribute<DD><CODE>rawName</CODE> - the qualified name of the attribute<DD><CODE>type</CODE> - the type of the attribute (probably CDATA)<DD><CODE>value</CODE> - the value of the attribute<DD><CODE>xslAttribute</CODE> - true if this attribute is coming from an xsl:attribute element.
<DT><B>Returns:</B><DD>true if the attribute value was added,
false if the attribute already existed and the value was
replaced with the new value.</DL>
</DD>
</DL>
<HR>
<A NAME="firePseudoAttributes()"><!-- --></A><H3>
firePseudoAttributes</H3>
<PRE>
protected void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3137"><B>firePseudoAttributes</B></A>()</PRE>
<DL>
<DD>To fire off the pseudo characters of attributes, as they currently
exist. This method should be called everytime an attribute is added,
or when an attribute value is changed, or an element is created.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setTransformer(javax.xml.transform.Transformer)"><!-- --></A><H3>
setTransformer</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3231"><B>setTransformer</B></A>(javax.xml.transform.Transformer&nbsp;transformer)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setTransformer(javax.xml.transform.Transformer)">SerializerBase</A></CODE></B></DD>
<DD>Sets the transformer associated with this serializer
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setTransformer(javax.xml.transform.Transformer)">setTransformer</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html" title="interface in org.apache.xml.serializer">SerializationHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setTransformer(javax.xml.transform.Transformer)">setTransformer</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>transformer</CODE> - the transformer associated with this serializer.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setTransformer(javax.xml.transform.Transformer)"><CODE>SerializationHandler.setTransformer(Transformer)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
public boolean <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3246"><B>reset</B></A>()</PRE>
<DL>
<DD>Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/Serializer.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/Serializer.html" title="interface in org.apache.xml.serializer">Serializer</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#reset()">reset</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if the class was successfuly reset.</DL>
</DD>
</DL>
<HR>
<A NAME="resetToStream()"><!-- --></A><H3>
resetToStream</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3261"><B>resetToStream</B></A>()</PRE>
<DL>
<DD>Reset all of the fields owned by ToStream class
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setEncoding(java.lang.String)"><!-- --></A><H3>
setEncoding</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3297"><B>setEncoding</B></A>(java.lang.String&nbsp;encoding)</PRE>
<DL>
<DD>Sets the character encoding coming from the xsl:output encoding stylesheet attribute.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/XSLOutputAttributes.html#setEncoding(java.lang.String)">setEncoding</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/XSLOutputAttributes.html" title="interface in org.apache.xml.serializer">XSLOutputAttributes</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setEncoding(java.lang.String)">setEncoding</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the character encoding</DL>
</DD>
</DL>
<HR>
<A NAME="notationDecl(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
notationDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3488"><B>notationDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;pubID,
java.lang.String&nbsp;sysID)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>notationDecl</CODE> in interface <CODE>org.xml.sax.DTDHandler</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#notationDecl(java.lang.String, java.lang.String, java.lang.String)">notationDecl</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><CODE>DTDHandler.notationDecl(java.lang.String, java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
unparsedEntityDecl</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3518"><B>unparsedEntityDecl</B></A>(java.lang.String&nbsp;name,
java.lang.String&nbsp;pubID,
java.lang.String&nbsp;sysID,
java.lang.String&nbsp;notationName)
throws org.xml.sax.SAXException</PRE>
<DL>
<DD>If this method is called, the serializer is used as a
DTDHandler, which changes behavior how the serializer
handles document entities.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>unparsedEntityDecl</CODE> in interface <CODE>org.xml.sax.DTDHandler</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">unparsedEntityDecl</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE><DT><B>See Also:</B><DD><CODE>DTDHandler.unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="DTDprolog()"><!-- --></A><H3>
DTDprolog</H3>
<PRE>
private void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3549"><B>DTDprolog</B></A>()
throws org.xml.sax.SAXException,
java.io.IOException</PRE>
<DL>
<DD>A private helper method to output the
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>org.xml.sax.SAXException</CODE>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setDTDEntityExpansion(boolean)"><!-- --></A><H3>
setDTDEntityExpansion</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3568"><B>setDTDEntityExpansion</B></A>(boolean&nbsp;expand)</PRE>
<DL>
<DD>If set to false the serializer does not expand DTD entities,
but leaves them as is, the default value is true;
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html#setDTDEntityExpansion(boolean)">setDTDEntityExpansion</A></CODE> in interface <CODE><A HREF="../../../../org/apache/xml/serializer/SerializationHandler.html" title="interface in org.apache.xml.serializer">SerializationHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html#setDTDEntityExpansion(boolean)">setDTDEntityExpansion</A></CODE> in class <CODE><A HREF="../../../../org/apache/xml/serializer/SerializerBase.html" title="class in org.apache.xml.serializer">SerializerBase</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expand</CODE> - true if DTD entities are to be expanded,
false if they are to be left as DTD entity references.</DL>
</DD>
</DL>
<HR>
<A NAME="setNewLine(char[])"><!-- --></A><H3>
setNewLine</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3576"><B>setNewLine</B></A>(char[]&nbsp;eolChars)</PRE>
<DL>
<DD>Sets the end of line characters to be used during serialization
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>eolChars</CODE> - A character array corresponding to the characters to be used.</DL>
</DD>
</DL>
<HR>
<A NAME="addCdataSectionElements(java.lang.String)"><!-- --></A><H3>
addCdataSectionElements</H3>
<PRE>
public void <A HREF="../../../../src-html/org/apache/xml/serializer/ToStream.html#line.3591"><B>addCdataSectionElements</B></A>(java.lang.String&nbsp;URI_and_localNames)</PRE>
<DL>
<DD>Remembers the cdata sections specified in the cdata-section-elements by appending the given
cdata section elements to the list. This method can be called multiple times, but once an
element is put in the list of cdata section elements it can not be removed.
This method should be used by both Xalan and XSLTC.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>URI_and_localNames</CODE> - a whitespace separated list of element names, each element
is a URI in curly braces (optional) and a local name. An example of such a parameter is:
"{http://company.com}price {myURI2}book chapter"</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ToStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ToSAXHandler.html" title="class in org.apache.xml.serializer"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/xml/serializer/ToStream.BoolStack.html" title="class in org.apache.xml.serializer"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/xml/serializer/ToStream.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="ToStream.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>