james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r894491 - /james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
Date Tue, 29 Dec 2009 22:05:22 GMT
Author: bago
Date: Tue Dec 29 22:05:21 2009
New Revision: 894491

URL: http://svn.apache.org/viewvc?rev=894491&view=rev
Log:
Small refactoring to better show code duplication in MimeEntity

Modified:
    james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java?rev=894491&r1=894490&r2=894491&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
(original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/parser/MimeEntity.java
Tue Dec 29 22:05:21 2009
@@ -260,12 +260,13 @@
             RawEntity message = new RawEntity(instream);
             return message;
         } else {
+            BufferedLineReaderInputStream stream = new BufferedLineReaderInputStream(
+                    mimeStream, 
+                    4 * 1024,
+                    config.getMaxLineLen());
             MimeEntity message = new MimeEntity(
                     lineSource, 
-                    new BufferedLineReaderInputStream(
-                            instream, 
-                            4 * 1024,
-                            config.getMaxLineLen()),
+                    stream,
                     body, 
                     EntityStates.T_START_MESSAGE, 
                     EntityStates.T_END_MESSAGE,



Mime
View raw message