james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r740703 - in /james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message: BinaryBody.java SingleBody.java TextBody.java
Date Wed, 04 Feb 2009 11:54:01 GMT
Author: mwiederkehr
Date: Wed Feb  4 11:54:00 2009
New Revision: 740703

URL: http://svn.apache.org/viewvc?rev=740703&view=rev
Log:
added protected constructor

Modified:
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/BinaryBody.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SingleBody.java
    james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/TextBody.java

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/BinaryBody.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/BinaryBody.java?rev=740703&r1=740702&r2=740703&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/BinaryBody.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/BinaryBody.java Wed Feb
 4 11:54:00 2009
@@ -26,6 +26,13 @@
  * A body containing binary data.
  */
 public abstract class BinaryBody extends SingleBody {
+
+    /**
+     * Sole constructor.
+     */
+    protected BinaryBody() {
+    }
+
     /**
      * Gets a <code>InputStream</code> which reads the bytes of the body.
      * 
@@ -34,4 +41,5 @@
      *             on I/O errors.
      */
     public abstract InputStream getInputStream() throws IOException;
+
 }

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SingleBody.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SingleBody.java?rev=740703&r1=740702&r2=740703&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SingleBody.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/SingleBody.java Wed Feb
 4 11:54:00 2009
@@ -32,6 +32,12 @@
     private Entity parent = null;
 
     /**
+     * Sole constructor.
+     */
+    protected SingleBody() {
+    }
+
+    /**
      * @see org.apache.james.mime4j.message.Body#getParent()
      */
     public Entity getParent() {
@@ -48,8 +54,10 @@
     /**
      * Writes this single body to the given stream.
      * 
-     * @param out the stream to write to.
-     * @throws IOException in case of an I/O error
+     * @param out
+     *            the stream to write to.
+     * @throws IOException
+     *             in case of an I/O error
      */
     public abstract void writeTo(OutputStream out) throws IOException;
 

Modified: james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/TextBody.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/TextBody.java?rev=740703&r1=740702&r2=740703&view=diff
==============================================================================
--- james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/TextBody.java (original)
+++ james/mime4j/trunk/src/main/java/org/apache/james/mime4j/message/TextBody.java Wed Feb
 4 11:54:00 2009
@@ -26,6 +26,13 @@
  * Encapsulates the contents of a <code>text/*</code> entity body.
  */
 public abstract class TextBody extends SingleBody {
+
+    /**
+     * Sole constructor.
+     */
+    protected TextBody() {
+    }
+
     /**
      * Returns the MIME charset of this text body.
      * 
@@ -42,4 +49,5 @@
      *             on I/O errors.
      */
     public abstract Reader getReader() throws IOException;
+
 }



Mime
View raw message