james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r923002 - in /james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message: EntityBuilder.java MessageBuilder.java MessageImpl.java
Date Sun, 14 Mar 2010 23:11:00 GMT
Author: bago
Date: Sun Mar 14 23:11:00 2010
New Revision: 923002

URL: http://svn.apache.org/viewvc?rev=923002&view=rev
Log:
Renamed MessageBuilder to EntityBuilder to avoid confusion with next changes (introducing
a MessageBuilder similar to xml's DocumentBuilder) (MIME4J-156)

Added:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/EntityBuilder.java
      - copied, changed from r909638, james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java
Removed:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java
Modified:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java

Copied: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/EntityBuilder.java
(from r909638, james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java)
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/EntityBuilder.java?p2=james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/EntityBuilder.java&p1=james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java&r1=909638&r2=923002&rev=923002&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageBuilder.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/EntityBuilder.java
Sun Mar 14 23:11:00 2010
@@ -43,18 +43,18 @@ import org.apache.james.mime4j.util.Byte
  * A <code>ContentHandler</code> for building an <code>Entity</code>
to be
  * used in conjunction with a {@link org.apache.james.mime4j.parser.MimeStreamParser}.
  */
-public class MessageBuilder implements ContentHandler {
+public class EntityBuilder implements ContentHandler {
 
     private final Entity entity;
     private final BodyFactory bodyFactory;
     private final Stack<Object> stack;
     private final DecodeMonitor monitor;
     
-    public MessageBuilder(Entity entity) {
+    public EntityBuilder(Entity entity) {
         this(entity, null, null);
     }
     
-    public MessageBuilder(
+    public EntityBuilder(
             final Entity entity, 
             final StorageProvider storageProvider, 
             final DecodeMonitor monitor) {

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java?rev=923002&r1=923001&r2=923002&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
Sun Mar 14 23:11:00 2010
@@ -162,7 +162,7 @@ public class MessageImpl extends Message
             this.monitor = monitor != null ? monitor : DecodeMonitor.SILENT;
             MimeStreamParser parser = new MimeStreamParser(config, bodyDescFactory, this.monitor);
             parser.setContentDecoding(true);
-            parser.setContentHandler(new MessageBuilder(this, storageProvider, this.monitor));
+            parser.setContentHandler(new EntityBuilder(this, storageProvider, this.monitor));
             parser.parse(is);
         } catch (MimeException e) {
             throw new MimeIOException(e);



Mime
View raw message