james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1137644 - in /james/mime4j/trunk: dom/src/main/java/org/apache/james/mime4j/dom/ dom/src/main/java/org/apache/james/mime4j/message/ examples/src/main/java/org/apache/james/mime4j/samples/dom/ examples/src/main/java/org/apache/james/mime4j/...
Date Mon, 20 Jun 2011 14:53:06 GMT
Author: olegk
Date: Mon Jun 20 14:53:06 2011
New Revision: 1137644

URL: http://svn.apache.org/viewvc?rev=1137644&view=rev
Log:
MessageFormatter -> MessageWriter

Added:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageWriter.java
      - copied, changed from r1137603, james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageFormatter.java
Removed:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageFormatter.java
Modified:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java
    james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/MultipartMessage.java
    james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/TextPlainMessage.java
    james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/transform/TransformMessage.java

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageServiceFactory.java
Mon Jun 20 14:53:06 2011
@@ -36,7 +36,7 @@ public abstract class MessageServiceFact
 
     public abstract MessageBuilder newMessageBuilder();
     
-    public abstract MessageFormatter newMessageFormatter();
+    public abstract MessageWriter newMessageWriter();
     
     public abstract void setAttribute(String name, Object value) throws IllegalArgumentException;
         

Copied: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageWriter.java
(from r1137603, james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageFormatter.java)
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageWriter.java?p2=james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageWriter.java&p1=james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageFormatter.java&r1=1137603&r2=1137644&rev=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageFormatter.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/MessageWriter.java Mon
Jun 20 14:53:06 2011
@@ -27,7 +27,7 @@ import org.apache.james.mime4j.stream.Fi
 /**
  * Defines the API to write Message and other DOM objects to an output stream.
  */
-public interface MessageFormatter {
+public interface MessageWriter {
     
     void writeMessage(Message message, OutputStream out) throws IOException;
 

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
Mon Jun 20 14:53:06 2011
@@ -20,7 +20,7 @@ package org.apache.james.mime4j.message;
 
 import org.apache.james.mime4j.dom.MessageBuilder;
 import org.apache.james.mime4j.dom.MessageServiceFactory;
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.stream.MimeEntityConfig;
 import org.apache.james.mime4j.stream.MutableBodyDescriptorFactory;
 
@@ -50,7 +50,7 @@ public class MessageServiceFactoryImpl e
     }
 
     @Override
-    public MessageFormatter newMessageFormatter() {
+    public MessageWriter newMessageWriter() {
         return new MimeWriter();
     }
     

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java Mon
Jun 20 14:53:06 2011
@@ -28,7 +28,7 @@ import org.apache.james.mime4j.dom.Body;
 import org.apache.james.mime4j.dom.Entity;
 import org.apache.james.mime4j.dom.Header;
 import org.apache.james.mime4j.dom.Message;
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.dom.Multipart;
 import org.apache.james.mime4j.dom.SingleBody;
 import org.apache.james.mime4j.dom.field.ContentTypeField;
@@ -42,7 +42,7 @@ import org.apache.james.mime4j.util.Mime
 /**
  * Writes a message (or a part of a message) to an output stream.
  */
-public class MimeWriter implements MessageFormatter {
+public class MimeWriter implements MessageWriter {
 
     private static final byte[] CRLF = { '\r', '\n' };
     private static final byte[] DASHES = { '-', '-' };

Modified: james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/MultipartMessage.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/MultipartMessage.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/MultipartMessage.java
(original)
+++ james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/MultipartMessage.java
Mon Jun 20 14:53:06 2011
@@ -30,7 +30,7 @@ import java.util.Date;
 import javax.imageio.ImageIO;
 
 import org.apache.james.mime4j.dom.BinaryBody;
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.dom.Multipart;
 import org.apache.james.mime4j.dom.TextBody;
 import org.apache.james.mime4j.field.address.AddressBuilder;
@@ -90,7 +90,7 @@ public class MultipartMessage {
 
         // 4) print message to standard output
 
-        MessageFormatter writer = new MimeWriter();
+        MessageWriter writer = new MimeWriter();
         writer.writeMessage(message, System.out);
 
         // 5) message is no longer needed and should be disposed of

Modified: james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/TextPlainMessage.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/TextPlainMessage.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/TextPlainMessage.java
(original)
+++ james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/dom/TextPlainMessage.java
Mon Jun 20 14:53:06 2011
@@ -22,7 +22,7 @@ package org.apache.james.mime4j.samples.
 import java.io.IOException;
 import java.util.Date;
 
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.dom.TextBody;
 import org.apache.james.mime4j.field.address.AddressBuilder;
 import org.apache.james.mime4j.field.address.ParseException;
@@ -64,7 +64,7 @@ public class TextPlainMessage {
 
         // 4) print message to standard output
 
-        MessageFormatter writer = new MimeWriter();
+        MessageWriter writer = new MimeWriter();
         writer.writeMessage(message, System.out);
 
         // 5) message is no longer needed and should be disposed of

Modified: james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/transform/TransformMessage.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/transform/TransformMessage.java?rev=1137644&r1=1137643&r2=1137644&view=diff
==============================================================================
--- james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/transform/TransformMessage.java
(original)
+++ james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/transform/TransformMessage.java
Mon Jun 20 14:53:06 2011
@@ -28,7 +28,7 @@ import org.apache.james.mime4j.dom.Body;
 import org.apache.james.mime4j.dom.Entity;
 import org.apache.james.mime4j.dom.Message;
 import org.apache.james.mime4j.dom.MessageBuilder;
-import org.apache.james.mime4j.dom.MessageFormatter;
+import org.apache.james.mime4j.dom.MessageWriter;
 import org.apache.james.mime4j.dom.Multipart;
 import org.apache.james.mime4j.dom.TextBody;
 import org.apache.james.mime4j.dom.field.ParseException;
@@ -66,7 +66,7 @@ public class TransformMessage {
         // Create a new message by transforming the template.
         Message transformed = transform(template);
 
-        MessageFormatter writer = new MimeWriter();
+        MessageWriter writer = new MimeWriter();
         
         // Print transformed message.
         System.out.println("\n\nTransformed message:\n--------------------\n");



Mime
View raw message