xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minc...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xml/serializer ToStream.java
Date Thu, 16 Oct 2003 15:20:54 GMT
minchau     2003/10/16 08:20:54

  Modified:    java/src/org/apache/xml/serializer ToStream.java
  Log:
  
  PR: bugzilla 23113
  Submitted by:	Brian Minchau
  Reviewed by:	Brian Minchau
  
  The reset() in ToStream did not reset a few fields to the original values
  that were obtained via " new ToStream() ".  The applied patch fixes that.
  
  Revision  Changes    Path
  1.24      +8 -2      xml-xalan/java/src/org/apache/xml/serializer/ToStream.java
  
  Index: ToStream.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToStream.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ToStream.java	6 Oct 2003 14:33:07 -0000	1.23
  +++ ToStream.java	16 Oct 2003 15:20:54 -0000	1.24
  @@ -2916,11 +2916,17 @@
       {
            this.m_canConvertMeth = null;
            this.m_cdataStartCalled = false;
  -         this.m_charInfo = null; // ?? 
  +         /* The stream is being reset. It is one of
  +          * ToXMLStream, ToHTMLStream ... and this type can't be changed
  +          * so neither should m_charInfo which is associated with the
  +          * type of Stream. Just leave m_charInfo as-is for the next re-use.
  +          * 
  +          */
  +         // this.m_charInfo = null; // don't set to null 
            this.m_charToByteConverter = null;
            this.m_disableOutputEscapingStates.clear();
            
  -         this.m_escaping = false;
  +         this.m_escaping = true;
            // Leave m_format alone for now - bjm
            // this.m_format = null;
            this.m_inDoctype = false;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message