From 102e57724c902df67b454f648852a7df8e3b63e0 Mon Sep 17 00:00:00 2001 From: Robert Burrell Donkin Date: Wed, 9 Jul 2008 18:32:27 +0000 Subject: [PATCH] Added toString git-svn-id: https://svn.eu.apache.org/repos/asf/james/mime4j/trunk@675292 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/james/mime4j/MimeBoundaryInputStream.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java b/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java index 9246d2d..abc113a 100644 --- a/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java +++ b/src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java @@ -268,5 +268,12 @@ public class MimeBoundaryInputStream extends BufferingInputStream { 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(); + } } -- 2.11.4.GIT