Author: veithen
Date: Mon Jul 20 00:06:36 2009
New Revision: 795662

URL: http://svn.apache.org/viewvc?rev=795662&view=rev
Log:
Fixed a glitch in my previous commit.

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java?rev=795662&r1=795661&r2=795662&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/BufferUtils.java
 Mon Jul 20 00:06:36 2009
@@ -71,8 +71,8 @@
             }
         }
         
-        // If this is a BAAOutputStream, use the optimized method
-        if (ENABLE_BAAOS_OPT && os instanceof BAAOutputStream) {
+        // If the stream implements ReadFromSupport, use the optimized method
+        if (ENABLE_BAAOS_OPT && os instanceof ReadFromSupport) {
             ((ReadFromSupport)os).readFrom(is, Long.MAX_VALUE);
             return;
         }


Reply via email to