james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r675292 - /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java
Date Wed, 09 Jul 2008 18:32:27 GMT
Author: rdonkin
Date: Wed Jul  9 11:32:27 2008
New Revision: 675292

URL: http://svn.apache.org/viewvc?rev=675292&view=rev
Log:
Added toString

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java?rev=675292&r1=675291&r2=675292&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java
(original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java
Wed Jul  9 11:32:27 2008
@@ -268,5 +268,12 @@
     public boolean eof() {
         return eof && !buffer.hasBufferedData();
     }
-    
+
+    public String toString() {
+        final StringBuffer buffer = new StringBuffer("MimeBoundaryInputStream, boundary ");
+        for (int i = 0; i < boundary.length; i++) {
+            buffer.append((char) boundary[i]);
+        }
+        return buffer.toString();
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message