cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/serialization AbstractTextSerializer.java
Date Thu, 27 Feb 2003 11:17:16 GMT
cziegeler    2003/02/27 03:17:15

  Modified:    src/java/org/apache/cocoon/serialization Tag:
                        cocoon_2_0_3_branch AbstractTextSerializer.java
  Log:
  Possible fix for bug 16903
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.9.2.6   +16 -8     xml-cocoon2/src/java/org/apache/cocoon/serialization/AbstractTextSerializer.java
  
  Index: AbstractTextSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/serialization/AbstractTextSerializer.java,v
  retrieving revision 1.9.2.5
  retrieving revision 1.9.2.6
  diff -u -r1.9.2.5 -r1.9.2.6
  --- AbstractTextSerializer.java	7 Feb 2003 13:15:14 -0000	1.9.2.5
  +++ AbstractTextSerializer.java	27 Feb 2003 11:17:15 -0000	1.9.2.6
  @@ -259,13 +259,6 @@
       }
   
       public void recycle() {
  -        if (this.output != null) {
  -            try {
  -                this.output.flush();
  -            } catch (IOException ignored) {
  -            }
  -        }
  -        
           super.recycle();
   
           if (this.namespacePipe != null) {
  @@ -539,4 +532,19 @@
               this.uriList.clear();
           }
       }
  +
  +    /* (non-Javadoc)
  +     * @see org.xml.sax.ContentHandler#endDocument()
  +     */
  +    public void endDocument() throws SAXException {
  +        super.endDocument();
  +
  +        if (this.output != null) {
  +            try {
  +                this.output.flush();
  +            } catch (IOException ignored) {
  +            }
  +        }
  +    }
  +
   }
  
  
  

Mime
View raw message