Author: thilina
Date: Sat Oct 14 22:34:48 2006
New Revision: 464128

URL: http://svn.apache.org/viewvc?view=rev&rev=464128
Log:
fixing axis2-1379
Base64 encoding adds padding if the number of bytes is not devisible by 3...

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java?view=diff&rev=464128&r1=464127&r2=464128
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
 Sat Oct 14 22:34:48 2006
@@ -225,12 +225,13 @@
             return getTextFromProperPlace();
         } else {
             try {
-                InputStream inStream;
+                               // TODO we have the following code duplicated 
in getTextAsQName
+                               InputStream inStream;
                 inStream = this.getInputStream();
                 byte[] data;
                 StringBuffer text = new StringBuffer();
                 do {
-                    data = new byte[1024];
+                    data = new byte[1023];
                     int len;
                     while ((len = inStream.read(data)) > 0) {
                         byte[] temp = new byte[len];
@@ -285,7 +286,7 @@
                 byte[] data;
                 StringBuffer text = new StringBuffer();
                 do {
-                    data = new byte[1024];
+                    data = new byte[1023];
                     int len;
                     while ((len = inStream.read(data)) > 0) {
                         byte[] temp = new byte[len];



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to