For some JVMs, Sun elects to throw a IOException when an InputStreamReader encounters...
commitfcf2e1fe497436f0b88938f8b4ae6a4dacc6d12f
authorRobert Burrell Donkin <rdonkin@apache.org>
Thu, 10 Jul 2008 22:08:19 +0000 (10 22:08 +0000)
committerRobert Burrell Donkin <rdonkin@apache.org>
Thu, 10 Jul 2008 22:08:19 +0000 (10 22:08 +0000)
tree56c518c49ad67ea10e344b5c83b0dba32721d240
parent7f89a8dd8a0444e1344450b24dfcd978202e3342
For some JVMs, Sun elects to throw a IOException when an InputStreamReader encounters a zero. For example, see bugs.sun.com/bugdatabase/view_bug.do?bug_id=4684515. This prevents JAMES IMAP from functioning correct when faced with some large emails. Most clients will simply call this method again if zero is returned so I think that this fix should reasonably safe but please review.

git-svn-id: https://svn.eu.apache.org/repos/asf/james/mime4j/trunk@675781 13f79535-47bb-0310-9956-ffa450edef68
src/main/java/org/apache/james/mime4j/MimeBoundaryInputStream.java