james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r928277 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java
Date Sat, 27 Mar 2010 21:08:20 GMT
Author: bago
Date: Sat Mar 27 21:08:20 2010
New Revision: 928277

URL: http://svn.apache.org/viewvc?rev=928277&view=rev
Log:
Improve toString debug for BufferedLineReaderInputStream in order to debug temporary buffer
state.

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java?rev=928277&r1=928276&r2=928277&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/io/BufferedLineReaderInputStream.java
Sat Mar 27 21:08:20 2010
@@ -357,6 +357,19 @@ public class BufferedLineReaderInputStre
             buffer.append((char) this.buffer[i]);
         }
         buffer.append("]");
+        if (tempBuffer) {
+            buffer.append("-ORIG[pos: ");
+            buffer.append(this.origBufpos);
+            buffer.append("]");
+            buffer.append("[limit: ");
+            buffer.append(this.origBuflen);
+            buffer.append("]");
+            buffer.append("[");
+            for (int i = this.origBufpos; i < this.origBuflen; i++) {
+                buffer.append((char) this.origBuffer[i]);
+            }
+            buffer.append("]");
+        }
         return buffer.toString();
     }
 



Mime
View raw message