src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java
changeset 58022 12885822f0c5
parent 55575 25165403c62e
child 58679 9c3209ff7550
equal deleted inserted replaced
58021:5f5ca2e02f6e 58022:12885822f0c5
    28 import org.xml.sax.Attributes;
    28 import org.xml.sax.Attributes;
    29 import org.xml.sax.SAXException;
    29 import org.xml.sax.SAXException;
    30 
    30 
    31 import com.sun.org.apache.xml.internal.serializer.utils.MsgKey;
    31 import com.sun.org.apache.xml.internal.serializer.utils.MsgKey;
    32 import com.sun.org.apache.xml.internal.serializer.utils.Utils;
    32 import com.sun.org.apache.xml.internal.serializer.utils.Utils;
       
    33 import javax.xml.transform.ErrorListener;
    33 
    34 
    34 /**
    35 /**
    35  * This serializer takes a series of SAX or
    36  * This serializer takes a series of SAX or
    36  * SAX-like events and writes its output
    37  * SAX-like events and writes its output
    37  * to the given stream.
    38  * to the given stream.
    38  *
    39  *
    39  * This class is not a public API, it is public
    40  * This class is not a public API, it is public
    40  * because it is used from another package.
    41  * because it is used from another package.
    41  *
    42  *
    42  * @xsl.usage internal
    43  * @xsl.usage internal
    43  * @LastModified: July 2019
    44  * @LastModified: Aug 2019
    44  */
    45  */
    45 public final class ToHTMLStream extends ToStream
    46 public final class ToHTMLStream extends ToStream
    46 {
    47 {
    47 
    48 
    48     /** This flag is set while receiving events from the DTD */
    49     /** This flag is set while receiving events from the DTD */
   636     /**
   637     /**
   637      * Default constructor.
   638      * Default constructor.
   638      */
   639      */
   639     public ToHTMLStream()
   640     public ToHTMLStream()
   640     {
   641     {
   641 
   642         this(null);
   642         super();
   643     }
       
   644 
       
   645     public ToHTMLStream(ErrorListener l)
       
   646     {
       
   647         super(l);
   643         m_charInfo = m_htmlcharInfo;
   648         m_charInfo = m_htmlcharInfo;
   644         // initialize namespaces
   649         // initialize namespaces
   645         m_prefixMap = new NamespaceMappings();
   650         m_prefixMap = new NamespaceMappings();
   646 
       
   647     }
   651     }
   648 
   652 
   649     /** The name of the current element. */
   653     /** The name of the current element. */
   650 //    private String m_currentElementName = null;
   654 //    private String m_currentElementName = null;
   651 
   655