axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis Message.java
Date Fri, 30 Aug 2002 20:25:06 GMT
rubys       2002/08/30 13:25:06

  Modified:    java/src/org/apache/axis Message.java
  Log:
  Recommendation straight from the javadoc for OutputStreamWriter:
  
      "For top efficiency, consider wrapping an OutputStreamWriter within
      a BufferedWriter so as to avoid frequent converter invocations."
  
  Revision  Changes    Path
  1.87      +4 -1      xml-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- Message.java	25 Aug 2002 19:05:02 -0000	1.86
  +++ Message.java	30 Aug 2002 20:25:06 -0000	1.87
  @@ -72,7 +72,9 @@
   import java.lang.reflect.Constructor;
   import java.lang.reflect.InvocationTargetException;
   import java.io.IOException;
  +import java.io.BufferedWriter;
   import java.io.OutputStreamWriter;
  +import java.io.Writer;
   import java.util.Iterator;
   
   /**
  @@ -425,7 +427,8 @@
            //Do it the old fashion way.
           if (mAttachments == null || 0 == mAttachments.getAttachmentCount()) {
               try {
  -                OutputStreamWriter writer = new OutputStreamWriter(os,"UTF-8");
  +                Writer writer = new OutputStreamWriter(os,"UTF-8");
  +                writer = new BufferedWriter(writer);
                   mSOAPPart.writeTo(writer);
                   writer.flush();
               } catch (java.io.IOException e) {
  
  
  

Mime
View raw message