james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r894910 [2/2] - in /james/mime4j/branches/cycleclean/core/src: main/java/org/apache/james/mime4j/field/ main/java/org/apache/james/mime4j/field/impl/ main/java/org/apache/james/mime4j/message/ main/java/org/apache/james/mime4j/message/impl/...
Date Thu, 31 Dec 2009 17:52:57 GMT
Copied: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/Fields.java (from r894881, james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/Fields.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/Fields.java?p2=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/Fields.java&p1=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/Fields.java&r1=894881&r2=894910&rev=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/Fields.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/Fields.java Thu Dec 31 17:52:56 2009
@@ -17,7 +17,7 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.james.mime4j.field;
+package org.apache.james.mime4j.field.impl;
 
 import java.util.Arrays;
 import java.util.Collections;
@@ -28,6 +28,18 @@
 import java.util.regex.Pattern;
 
 import org.apache.james.mime4j.codec.EncoderUtil;
+import org.apache.james.mime4j.field.impl.AddressListFieldImpl;
+import org.apache.james.mime4j.field.impl.ContentDispositionFieldImpl;
+import org.apache.james.mime4j.field.impl.ContentTransferEncodingFieldImpl;
+import org.apache.james.mime4j.field.impl.ContentTypeFieldImpl;
+import org.apache.james.mime4j.field.impl.DateTimeFieldImpl;
+import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.FieldName;
+import org.apache.james.mime4j.field.FieldParser;
+import org.apache.james.mime4j.field.impl.MailboxFieldImpl;
+import org.apache.james.mime4j.field.impl.MailboxListFieldImpl;
+import org.apache.james.mime4j.field.ParsedField;
+import org.apache.james.mime4j.field.impl.UnstructuredFieldImpl;
 import org.apache.james.mime4j.field.address.Address;
 import org.apache.james.mime4j.field.address.Mailbox;
 import org.apache.james.mime4j.parser.RawField;
@@ -54,8 +66,8 @@
      *            parameters.
      * @return the newly created <i>Content-Type</i> field.
      */
-    public static ContentTypeField contentType(String contentType) {
-        return parse(ContentTypeField.PARSER, FieldName.CONTENT_TYPE,
+    public static ContentTypeFieldImpl contentType(String contentType) {
+        return parse(ContentTypeFieldImpl.PARSER, FieldName.CONTENT_TYPE,
                 contentType);
     }
 
@@ -71,13 +83,13 @@
      *            <code>&quot;boundary&quot;</code>.
      * @return the newly created <i>Content-Type</i> field.
      */
-    public static ContentTypeField contentType(String mimeType,
+    public static ContentTypeFieldImpl contentType(String mimeType,
             Map<String, String> parameters) {
         if (!isValidMimeType(mimeType))
             throw new IllegalArgumentException();
 
         if (parameters == null || parameters.isEmpty()) {
-            return parse(ContentTypeField.PARSER, FieldName.CONTENT_TYPE,
+            return parse(ContentTypeFieldImpl.PARSER, FieldName.CONTENT_TYPE,
                     mimeType);
         } else {
             StringBuilder sb = new StringBuilder(mimeType);
@@ -100,9 +112,9 @@
      *            or <code>&quot;quoted-printable&quot;</code>.
      * @return the newly created <i>Content-Transfer-Encoding</i> field.
      */
-    public static ContentTransferEncodingField contentTransferEncoding(
+    public static ContentTransferEncodingFieldImpl contentTransferEncoding(
             String contentTransferEncoding) {
-        return parse(ContentTransferEncodingField.PARSER,
+        return parse(ContentTransferEncodingFieldImpl.PARSER,
                 FieldName.CONTENT_TRANSFER_ENCODING, contentTransferEncoding);
     }
 
@@ -116,9 +128,9 @@
      *            optional parameters.
      * @return the newly created <i>Content-Disposition</i> field.
      */
-    public static ContentDispositionField contentDisposition(
+    public static ContentDispositionFieldImpl contentDisposition(
             String contentDisposition) {
-        return parse(ContentDispositionField.PARSER,
+        return parse(ContentDispositionFieldImpl.PARSER,
                 FieldName.CONTENT_DISPOSITION, contentDisposition);
     }
 
@@ -134,13 +146,13 @@
      *            <code>&quot;filename&quot;</code>.
      * @return the newly created <i>Content-Disposition</i> field.
      */
-    public static ContentDispositionField contentDisposition(
+    public static ContentDispositionFieldImpl contentDisposition(
             String dispositionType, Map<String, String> parameters) {
         if (!isValidDispositionType(dispositionType))
             throw new IllegalArgumentException();
 
         if (parameters == null || parameters.isEmpty()) {
-            return parse(ContentDispositionField.PARSER,
+            return parse(ContentDispositionFieldImpl.PARSER,
                     FieldName.CONTENT_DISPOSITION, dispositionType);
         } else {
             StringBuilder sb = new StringBuilder(dispositionType);
@@ -166,7 +178,7 @@
      *            parameter should not be included.
      * @return the newly created <i>Content-Disposition</i> field.
      */
-    public static ContentDispositionField contentDisposition(
+    public static ContentDispositionFieldImpl contentDisposition(
             String dispositionType, String filename) {
         return contentDisposition(dispositionType, filename, -1, null, null,
                 null);
@@ -186,7 +198,7 @@
      *            should not be included.
      * @return the newly created <i>Content-Disposition</i> field.
      */
-    public static ContentDispositionField contentDisposition(
+    public static ContentDispositionFieldImpl contentDisposition(
             String dispositionType, String filename, long size) {
         return contentDisposition(dispositionType, filename, size, null, null,
                 null);
@@ -215,27 +227,27 @@
      *            parameter should not be included.
      * @return the newly created <i>Content-Disposition</i> field.
      */
-    public static ContentDispositionField contentDisposition(
+    public static ContentDispositionFieldImpl contentDisposition(
             String dispositionType, String filename, long size,
             Date creationDate, Date modificationDate, Date readDate) {
         Map<String, String> parameters = new HashMap<String, String>();
         if (filename != null) {
-            parameters.put(ContentDispositionField.PARAM_FILENAME, filename);
+            parameters.put(ContentDispositionFieldImpl.PARAM_FILENAME, filename);
         }
         if (size >= 0) {
-            parameters.put(ContentDispositionField.PARAM_SIZE, Long
+            parameters.put(ContentDispositionFieldImpl.PARAM_SIZE, Long
                     .toString(size));
         }
         if (creationDate != null) {
-            parameters.put(ContentDispositionField.PARAM_CREATION_DATE,
+            parameters.put(ContentDispositionFieldImpl.PARAM_CREATION_DATE,
                     MimeUtil.formatDate(creationDate, null));
         }
         if (modificationDate != null) {
-            parameters.put(ContentDispositionField.PARAM_MODIFICATION_DATE,
+            parameters.put(ContentDispositionFieldImpl.PARAM_MODIFICATION_DATE,
                     MimeUtil.formatDate(modificationDate, null));
         }
         if (readDate != null) {
-            parameters.put(ContentDispositionField.PARAM_READ_DATE, MimeUtil
+            parameters.put(ContentDispositionFieldImpl.PARAM_READ_DATE, MimeUtil
                     .formatDate(readDate, null));
         }
         return contentDisposition(dispositionType, parameters);
@@ -249,7 +261,7 @@
      *            date value for the header field.
      * @return the newly created <i>Date</i> field.
      */
-    public static DateTimeField date(Date date) {
+    public static DateTimeFieldImpl date(Date date) {
         return date0(FieldName.DATE, date, null);
     }
 
@@ -264,7 +276,7 @@
      *            date value for the header field.
      * @return the newly created date field.
      */
-    public static DateTimeField date(String fieldName, Date date) {
+    public static DateTimeFieldImpl date(String fieldName, Date date) {
         checkValidFieldName(fieldName);
         return date0(fieldName, date, null);
     }
@@ -282,7 +294,7 @@
      *            the time zone to be used for formatting the date.
      * @return the newly created date field.
      */
-    public static DateTimeField date(String fieldName, Date date, TimeZone zone) {
+    public static DateTimeFieldImpl date(String fieldName, Date date, TimeZone zone) {
         checkValidFieldName(fieldName);
         return date0(fieldName, date, zone);
     }
@@ -295,9 +307,9 @@
      *            <code>null</code> if no host name should be included.
      * @return the newly created <i>Message-ID</i> field.
      */
-    public static UnstructuredField messageId(String hostname) {
+    public static UnstructuredFieldImpl messageId(String hostname) {
         String fieldValue = MimeUtil.createUniqueMessageId(hostname);
-        return parse(UnstructuredField.PARSER, FieldName.MESSAGE_ID, fieldValue);
+        return parse(UnstructuredFieldImpl.PARSER, FieldName.MESSAGE_ID, fieldValue);
     }
 
     /**
@@ -308,12 +320,12 @@
      *            the subject string.
      * @return the newly created <i>Subject</i> field.
      */
-    public static UnstructuredField subject(String subject) {
+    public static UnstructuredFieldImpl subject(String subject) {
         int usedCharacters = FieldName.SUBJECT.length() + 2;
         String fieldValue = EncoderUtil.encodeIfNecessary(subject,
                 EncoderUtil.Usage.TEXT_TOKEN, usedCharacters);
 
-        return parse(UnstructuredField.PARSER, FieldName.SUBJECT, fieldValue);
+        return parse(UnstructuredFieldImpl.PARSER, FieldName.SUBJECT, fieldValue);
     }
 
     /**
@@ -323,7 +335,7 @@
      *            address to be included in the field.
      * @return the newly created <i>Sender</i> field.
      */
-    public static MailboxField sender(Mailbox mailbox) {
+    public static MailboxFieldImpl sender(Mailbox mailbox) {
         return mailbox0(FieldName.SENDER, mailbox);
     }
 
@@ -334,7 +346,7 @@
      *            address to be included in the field.
      * @return the newly created <i>From</i> field.
      */
-    public static MailboxListField from(Mailbox mailbox) {
+    public static MailboxListFieldImpl from(Mailbox mailbox) {
         return mailboxList0(FieldName.FROM, Collections.singleton(mailbox));
     }
 
@@ -345,7 +357,7 @@
      *            addresses to be included in the field.
      * @return the newly created <i>From</i> field.
      */
-    public static MailboxListField from(Mailbox... mailboxes) {
+    public static MailboxListFieldImpl from(Mailbox... mailboxes) {
         return mailboxList0(FieldName.FROM, Arrays.asList(mailboxes));
     }
 
@@ -356,7 +368,7 @@
      *            addresses to be included in the field.
      * @return the newly created <i>From</i> field.
      */
-    public static MailboxListField from(Iterable<Mailbox> mailboxes) {
+    public static MailboxListFieldImpl from(Iterable<Mailbox> mailboxes) {
         return mailboxList0(FieldName.FROM, mailboxes);
     }
 
@@ -367,7 +379,7 @@
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>To</i> field.
      */
-    public static AddressListField to(Address address) {
+    public static AddressListFieldImpl to(Address address) {
         return addressList0(FieldName.TO, Collections.singleton(address));
     }
 
@@ -378,7 +390,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>To</i> field.
      */
-    public static AddressListField to(Address... addresses) {
+    public static AddressListFieldImpl to(Address... addresses) {
         return addressList0(FieldName.TO, Arrays.asList(addresses));
     }
 
@@ -389,7 +401,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>To</i> field.
      */
-    public static AddressListField to(Iterable<Address> addresses) {
+    public static AddressListFieldImpl to(Iterable<Address> addresses) {
         return addressList0(FieldName.TO, addresses);
     }
 
@@ -400,7 +412,7 @@
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Cc</i> field.
      */
-    public static AddressListField cc(Address address) {
+    public static AddressListFieldImpl cc(Address address) {
         return addressList0(FieldName.CC, Collections.singleton(address));
     }
 
@@ -411,7 +423,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Cc</i> field.
      */
-    public static AddressListField cc(Address... addresses) {
+    public static AddressListFieldImpl cc(Address... addresses) {
         return addressList0(FieldName.CC, Arrays.asList(addresses));
     }
 
@@ -422,7 +434,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Cc</i> field.
      */
-    public static AddressListField cc(Iterable<Address> addresses) {
+    public static AddressListFieldImpl cc(Iterable<Address> addresses) {
         return addressList0(FieldName.CC, addresses);
     }
 
@@ -433,7 +445,7 @@
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Bcc</i> field.
      */
-    public static AddressListField bcc(Address address) {
+    public static AddressListFieldImpl bcc(Address address) {
         return addressList0(FieldName.BCC, Collections.singleton(address));
     }
 
@@ -444,7 +456,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Bcc</i> field.
      */
-    public static AddressListField bcc(Address... addresses) {
+    public static AddressListFieldImpl bcc(Address... addresses) {
         return addressList0(FieldName.BCC, Arrays.asList(addresses));
     }
 
@@ -455,7 +467,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Bcc</i> field.
      */
-    public static AddressListField bcc(Iterable<Address> addresses) {
+    public static AddressListFieldImpl bcc(Iterable<Address> addresses) {
         return addressList0(FieldName.BCC, addresses);
     }
 
@@ -467,7 +479,7 @@
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
      */
-    public static AddressListField replyTo(Address address) {
+    public static AddressListFieldImpl replyTo(Address address) {
         return addressList0(FieldName.REPLY_TO, Collections.singleton(address));
     }
 
@@ -479,7 +491,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
      */
-    public static AddressListField replyTo(Address... addresses) {
+    public static AddressListFieldImpl replyTo(Address... addresses) {
         return addressList0(FieldName.REPLY_TO, Arrays.asList(addresses));
     }
 
@@ -491,7 +503,7 @@
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
      */
-    public static AddressListField replyTo(Iterable<Address> addresses) {
+    public static AddressListFieldImpl replyTo(Iterable<Address> addresses) {
         return addressList0(FieldName.REPLY_TO, addresses);
     }
 
@@ -507,7 +519,7 @@
      *            mailbox address for the field value.
      * @return the newly created mailbox field.
      */
-    public static MailboxField mailbox(String fieldName, Mailbox mailbox) {
+    public static MailboxFieldImpl mailbox(String fieldName, Mailbox mailbox) {
         checkValidFieldName(fieldName);
         return mailbox0(fieldName, mailbox);
     }
@@ -524,7 +536,7 @@
      *            mailbox addresses for the field value.
      * @return the newly created mailbox-list field.
      */
-    public static MailboxListField mailboxList(String fieldName,
+    public static MailboxListFieldImpl mailboxList(String fieldName,
             Iterable<Mailbox> mailboxes) {
         checkValidFieldName(fieldName);
         return mailboxList0(fieldName, mailboxes);
@@ -546,33 +558,33 @@
      *            mailbox or group addresses for the field value.
      * @return the newly created address-list field.
      */
-    public static AddressListField addressList(String fieldName,
+    public static AddressListFieldImpl addressList(String fieldName,
             Iterable<Address> addresses) {
         checkValidFieldName(fieldName);
         return addressList0(fieldName, addresses);
     }
 
-    private static DateTimeField date0(String fieldName, Date date,
+    private static DateTimeFieldImpl date0(String fieldName, Date date,
             TimeZone zone) {
         final String formattedDate = MimeUtil.formatDate(date, zone);
-        return parse(DateTimeField.PARSER, fieldName, formattedDate);
+        return parse(DateTimeFieldImpl.PARSER, fieldName, formattedDate);
     }
 
-    private static MailboxField mailbox0(String fieldName, Mailbox mailbox) {
+    private static MailboxFieldImpl mailbox0(String fieldName, Mailbox mailbox) {
         String fieldValue = encodeAddresses(Collections.singleton(mailbox));
-        return parse(MailboxField.PARSER, fieldName, fieldValue);
+        return parse(MailboxFieldImpl.PARSER, fieldName, fieldValue);
     }
 
-    private static MailboxListField mailboxList0(String fieldName,
+    private static MailboxListFieldImpl mailboxList0(String fieldName,
             Iterable<Mailbox> mailboxes) {
         String fieldValue = encodeAddresses(mailboxes);
-        return parse(MailboxListField.PARSER, fieldName, fieldValue);
+        return parse(MailboxListFieldImpl.PARSER, fieldName, fieldValue);
     }
 
-    private static AddressListField addressList0(String fieldName,
+    private static AddressListFieldImpl addressList0(String fieldName,
             Iterable<Address> addresses) {
         String fieldValue = encodeAddresses(addresses);
-        return parse(AddressListField.PARSER, fieldName, fieldValue);
+        return parse(AddressListFieldImpl.PARSER, fieldName, fieldValue);
     }
 
     private static void checkValidFieldName(String fieldName) {

Propchange: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/Fields.java
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxFieldImpl.java (from r894746, james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxField.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxFieldImpl.java?p2=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxFieldImpl.java&p1=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxField.java&r1=894746&r2=894910&rev=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxField.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxFieldImpl.java Thu Dec 31 17:52:56 2009
@@ -17,10 +17,11 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.james.mime4j.field;
+package org.apache.james.mime4j.field.impl;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.james.mime4j.field.FieldParser;
 import org.apache.james.mime4j.field.address.AddressList;
 import org.apache.james.mime4j.field.address.Mailbox;
 import org.apache.james.mime4j.field.address.MailboxList;
@@ -30,18 +31,21 @@
 /**
  * Mailbox field such as <code>Sender</code> or <code>Resent-Sender</code>.
  */
-public class MailboxField extends AbstractField {
-    private static Log log = LogFactory.getLog(MailboxField.class);
+public class MailboxFieldImpl extends AbstractField implements org.apache.james.mime4j.field.MailboxField {
+    private static Log log = LogFactory.getLog(MailboxFieldImpl.class);
 
     private boolean parsed = false;
 
     private Mailbox mailbox;
     private ParseException parseException;
 
-    MailboxField(final String name, final String body, final ByteSequence raw) {
+    MailboxFieldImpl(final String name, final String body, final ByteSequence raw) {
         super(name, body, raw);
     }
 
+    /**
+     * @see org.apache.james.mime4j.field.MailboxField#getMailbox()
+     */
     public Mailbox getMailbox() {
         if (!parsed)
             parse();
@@ -49,6 +53,9 @@
         return mailbox;
     }
 
+    /**
+     * @see org.apache.james.mime4j.field.MailboxField#getParseException()
+     */
     @Override
     public ParseException getParseException() {
         if (!parsed)
@@ -75,10 +82,10 @@
         parsed = true;
     }
 
-    static final FieldParser<MailboxField> PARSER = new FieldParser<MailboxField>() {
-        public MailboxField parse(final String name, final String body,
+    static final FieldParser<MailboxFieldImpl> PARSER = new FieldParser<MailboxFieldImpl>() {
+        public MailboxFieldImpl parse(final String name, final String body,
                 final ByteSequence raw) {
-            return new MailboxField(name, body, raw);
+            return new MailboxFieldImpl(name, body, raw);
         }
     };
 }

Propchange: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxFieldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxListFieldImpl.java (from r894746, james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxListField.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxListFieldImpl.java?p2=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxListFieldImpl.java&p1=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxListField.java&r1=894746&r2=894910&rev=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/MailboxListField.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxListFieldImpl.java Thu Dec 31 17:52:56 2009
@@ -17,10 +17,11 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.james.mime4j.field;
+package org.apache.james.mime4j.field.impl;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.apache.james.mime4j.field.FieldParser;
 import org.apache.james.mime4j.field.address.AddressList;
 import org.apache.james.mime4j.field.address.MailboxList;
 import org.apache.james.mime4j.field.address.parser.ParseException;
@@ -29,18 +30,21 @@
 /**
  * Mailbox-list field such as <code>From</code> or <code>Resent-From</code>.
  */
-public class MailboxListField extends AbstractField {
-    private static Log log = LogFactory.getLog(MailboxListField.class);
+public class MailboxListFieldImpl extends AbstractField implements org.apache.james.mime4j.field.MailboxListField {
+    private static Log log = LogFactory.getLog(MailboxListFieldImpl.class);
 
     private boolean parsed = false;
 
     private MailboxList mailboxList;
     private ParseException parseException;
 
-    MailboxListField(final String name, final String body, final ByteSequence raw) {
+    MailboxListFieldImpl(final String name, final String body, final ByteSequence raw) {
         super(name, body, raw);
     }
 
+    /**
+     * @see org.apache.james.mime4j.field.MailboxListField#getMailboxList()
+     */
     public MailboxList getMailboxList() {
         if (!parsed)
             parse();
@@ -48,6 +52,9 @@
         return mailboxList;
     }
 
+    /**
+     * @see org.apache.james.mime4j.field.MailboxListField#getParseException()
+     */
     @Override
     public ParseException getParseException() {
         if (!parsed)
@@ -71,10 +78,10 @@
         parsed = true;
     }
 
-    static final FieldParser<MailboxListField> PARSER = new FieldParser<MailboxListField>() {
-        public MailboxListField parse(final String name, final String body,
+    static final FieldParser<MailboxListFieldImpl> PARSER = new FieldParser<MailboxListFieldImpl>() {
+        public MailboxListFieldImpl parse(final String name, final String body,
                 final ByteSequence raw) {
-            return new MailboxListField(name, body, raw);
+            return new MailboxListFieldImpl(name, body, raw);
         }
     };
 }

Propchange: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/MailboxListFieldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Copied: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/UnstructuredFieldImpl.java (from r894746, james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/UnstructuredField.java)
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/UnstructuredFieldImpl.java?p2=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/UnstructuredFieldImpl.java&p1=james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/UnstructuredField.java&r1=894746&r2=894910&rev=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/UnstructuredField.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/UnstructuredFieldImpl.java Thu Dec 31 17:52:56 2009
@@ -17,23 +17,27 @@
  * under the License.                                           *
  ****************************************************************/
 
-package org.apache.james.mime4j.field;
+package org.apache.james.mime4j.field.impl;
 
 import org.apache.james.mime4j.codec.DecoderUtil;
+import org.apache.james.mime4j.field.FieldParser;
 import org.apache.james.mime4j.util.ByteSequence;
 
 /**
  * Simple unstructured field such as <code>Subject</code>.
  */
-public class UnstructuredField extends AbstractField {
+public class UnstructuredFieldImpl extends AbstractField implements org.apache.james.mime4j.field.UnstructuredField {
     private boolean parsed = false;
 
     private String value;
 
-    UnstructuredField(String name, String body, ByteSequence raw) {
+    UnstructuredFieldImpl(String name, String body, ByteSequence raw) {
         super(name, body, raw);
     }
 
+    /**
+     * @see org.apache.james.mime4j.field.UnstructuredField#getValue()
+     */
     public String getValue() {
         if (!parsed)
             parse();
@@ -49,10 +53,10 @@
         parsed = true;
     }
 
-    static final FieldParser<UnstructuredField> PARSER = new FieldParser<UnstructuredField>() {
-        public UnstructuredField parse(final String name, final String body,
+    static final FieldParser<UnstructuredFieldImpl> PARSER = new FieldParser<UnstructuredFieldImpl>() {
+        public UnstructuredFieldImpl parse(final String name, final String body,
                 final ByteSequence raw) {
-            return new UnstructuredField(name, body, raw);
+            return new UnstructuredFieldImpl(name, body, raw);
         }
     };
 }

Propchange: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/field/impl/UnstructuredFieldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/Entity.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/Entity.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/Entity.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/Entity.java Thu Dec 31 17:52:56 2009
@@ -29,6 +29,8 @@
 import org.apache.james.mime4j.field.ContentTypeField;
 import org.apache.james.mime4j.field.Field;
 import org.apache.james.mime4j.field.FieldName;
+import org.apache.james.mime4j.field.impl.ContentTransferEncodingFieldImpl;
+import org.apache.james.mime4j.field.impl.ContentTypeFieldImpl;
 
 /**
  * MIME entity. An entity has a header and a body (see RFC 2045).
@@ -257,13 +259,17 @@
      */
     public String getMimeType() {
         ContentTypeField child = 
-            (ContentTypeField) getHeader().getField(FieldName.CONTENT_TYPE);
+            getContentTypeField();
         ContentTypeField parent = getParent() != null 
             ? (ContentTypeField) getParent().getHeader().
                                                 getField(FieldName.CONTENT_TYPE)
             : null;
         
-        return ContentTypeField.getMimeType(child, parent);
+        return ContentTypeFieldImpl.getMimeType(child, parent);
+    }
+
+    private ContentTypeField getContentTypeField() {
+        return (ContentTypeField) getHeader().getField(FieldName.CONTENT_TYPE);
     }
     
     /**
@@ -272,7 +278,7 @@
      * @return the MIME character set encoding.
      */
     public String getCharset() {
-        return ContentTypeField.getCharset( 
+        return ContentTypeFieldImpl.getCharset( 
             (ContentTypeField) getHeader().getField(FieldName.CONTENT_TYPE));
     }
     
@@ -285,7 +291,7 @@
         ContentTransferEncodingField f = (ContentTransferEncodingField) 
                         getHeader().getField(FieldName.CONTENT_TRANSFER_ENCODING);
         
-        return ContentTransferEncodingField.getEncoding(f);
+        return ContentTransferEncodingFieldImpl.getEncoding(f);
     }
 
     /**
@@ -469,8 +475,7 @@
      * @return <code>true</code> on match, <code>false</code> otherwise.
      */
     public boolean isMultipart() {
-        ContentTypeField f = (ContentTypeField) getHeader().getField(
-                FieldName.CONTENT_TYPE);
+        ContentTypeField f = getContentTypeField();
         return f != null
                 && f.getBoundary() != null
                 && getMimeType().startsWith(

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/BodyPart.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/BodyPart.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/BodyPart.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/BodyPart.java Thu Dec 31 17:52:56 2009
@@ -25,7 +25,7 @@
 import org.apache.james.mime4j.field.ContentDispositionField;
 import org.apache.james.mime4j.field.ContentTransferEncodingField;
 import org.apache.james.mime4j.field.ContentTypeField;
-import org.apache.james.mime4j.field.Fields;
+import org.apache.james.mime4j.field.impl.Fields;
 import org.apache.james.mime4j.message.Body;
 import org.apache.james.mime4j.message.Entity;
 import org.apache.james.mime4j.message.Header;

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/HeaderImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/HeaderImpl.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/HeaderImpl.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/HeaderImpl.java Thu Dec 31 17:52:56 2009
@@ -24,8 +24,8 @@
 
 import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.MimeIOException;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.Header;
 import org.apache.james.mime4j.parser.AbstractContentHandler;
 import org.apache.james.mime4j.parser.MimeStreamParser;

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageBuilder.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageBuilder.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageBuilder.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageBuilder.java Thu Dec 31 17:52:56 2009
@@ -25,8 +25,8 @@
 
 import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.descriptor.BodyDescriptor;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.Body;
 import org.apache.james.mime4j.message.Entity;
 import org.apache.james.mime4j.message.Header;

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageImpl.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageImpl.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/MessageImpl.java Thu Dec 31 17:52:56 2009
@@ -35,12 +35,12 @@
 import org.apache.james.mime4j.field.ContentTypeField;
 import org.apache.james.mime4j.field.DateTimeField;
 import org.apache.james.mime4j.field.FieldName;
-import org.apache.james.mime4j.field.Fields;
 import org.apache.james.mime4j.field.MailboxField;
 import org.apache.james.mime4j.field.MailboxListField;
 import org.apache.james.mime4j.field.UnstructuredField;
 import org.apache.james.mime4j.field.address.Address;
 import org.apache.james.mime4j.field.address.Mailbox;
+import org.apache.james.mime4j.field.impl.Fields;
 import org.apache.james.mime4j.message.Body;
 import org.apache.james.mime4j.message.Header;
 import org.apache.james.mime4j.message.Message;

Modified: james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/SimpleContentHandler.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/SimpleContentHandler.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/SimpleContentHandler.java (original)
+++ james/mime4j/branches/cycleclean/core/src/main/java/org/apache/james/mime4j/message/impl/SimpleContentHandler.java Thu Dec 31 17:52:56 2009
@@ -20,8 +20,8 @@
 package org.apache.james.mime4j.message.impl;
 
 import org.apache.james.mime4j.MimeException;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.Header;
 import org.apache.james.mime4j.parser.AbstractContentHandler;
 import org.apache.james.mime4j.parser.RawField;

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentDispositionFieldTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentDispositionFieldTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentDispositionFieldTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentDispositionFieldTest.java Thu Dec 31 17:52:56 2009
@@ -23,6 +23,7 @@
 
 import junit.framework.TestCase;
 
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.log4j.BasicConfigurator;
 
 public class ContentDispositionFieldTest extends TestCase {

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldTest.java Thu Dec 31 17:52:56 2009
@@ -20,7 +20,8 @@
 package org.apache.james.mime4j.field;
 
 import org.apache.james.mime4j.field.ContentTransferEncodingField;
-import org.apache.james.mime4j.field.DefaultFieldParser;
+import org.apache.james.mime4j.field.impl.ContentTransferEncodingFieldImpl;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 
 import junit.framework.TestCase;
 
@@ -51,18 +52,18 @@
         
         f = (ContentTransferEncodingField) 
                     DefaultFieldParser.parse("Content-Transfer-Encoding: 8bit");
-        assertEquals("8bit", ContentTransferEncodingField.getEncoding(f));
+        assertEquals("8bit", ContentTransferEncodingFieldImpl.getEncoding(f));
         
         f = null;
-        assertEquals("7bit", ContentTransferEncodingField.getEncoding(f));
+        assertEquals("7bit", ContentTransferEncodingFieldImpl.getEncoding(f));
         
         f = (ContentTransferEncodingField) 
                     DefaultFieldParser.parse("Content-Transfer-Encoding:       ");
-        assertEquals("7bit", ContentTransferEncodingField.getEncoding(f));
+        assertEquals("7bit", ContentTransferEncodingFieldImpl.getEncoding(f));
         
         f = (ContentTransferEncodingField) 
                     DefaultFieldParser.parse("Content-Transfer-Encoding:");
-        assertEquals("7bit", ContentTransferEncodingField.getEncoding(f));
+        assertEquals("7bit", ContentTransferEncodingFieldImpl.getEncoding(f));
     }
 
 }

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTypeFieldTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTypeFieldTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTypeFieldTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/ContentTypeFieldTest.java Thu Dec 31 17:52:56 2009
@@ -20,7 +20,8 @@
 package org.apache.james.mime4j.field;
 
 import org.apache.james.mime4j.field.ContentTypeField;
-import org.apache.james.mime4j.field.DefaultFieldParser;
+import org.apache.james.mime4j.field.impl.ContentTypeFieldImpl;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.log4j.BasicConfigurator;
 
 import junit.framework.TestCase;
@@ -63,29 +64,29 @@
         
         child = (ContentTypeField) DefaultFieldParser.parse("Content-Type: child/type");
         parent = (ContentTypeField) DefaultFieldParser.parse("Content-Type: parent/type");
-        assertEquals("child/type", ContentTypeField.getMimeType(child, parent));
+        assertEquals("child/type", ContentTypeFieldImpl.getMimeType(child, parent));
         
         child = null;
         parent = (ContentTypeField) DefaultFieldParser.parse("Content-Type: parent/type");
-        assertEquals("text/plain", ContentTypeField.getMimeType(child, parent));
+        assertEquals("text/plain", ContentTypeFieldImpl.getMimeType(child, parent));
         parent = (ContentTypeField) DefaultFieldParser.parse("Content-Type: multipart/digest");
-        assertEquals("message/rfc822", ContentTypeField.getMimeType(child, parent));
+        assertEquals("message/rfc822", ContentTypeFieldImpl.getMimeType(child, parent));
         
         child = (ContentTypeField) DefaultFieldParser.parse("Content-Type:");
         parent = (ContentTypeField) DefaultFieldParser.parse("Content-Type: parent/type");
-        assertEquals("text/plain", ContentTypeField.getMimeType(child, parent));
+        assertEquals("text/plain", ContentTypeFieldImpl.getMimeType(child, parent));
         parent = (ContentTypeField) DefaultFieldParser.parse("Content-Type: multipart/digest");
-        assertEquals("message/rfc822", ContentTypeField.getMimeType(child, parent));
+        assertEquals("message/rfc822", ContentTypeFieldImpl.getMimeType(child, parent));
     }
     
     public void testGetCharsetStatic() throws Exception {
         ContentTypeField f = null;
         
         f = (ContentTypeField) DefaultFieldParser.parse("Content-Type: some/type; charset=iso8859-1");
-        assertEquals("iso8859-1", ContentTypeField.getCharset(f));
+        assertEquals("iso8859-1", f.getCharset());
         
         f = (ContentTypeField) DefaultFieldParser.parse("Content-Type: some/type;");
-        assertEquals("us-ascii", ContentTypeField.getCharset(f));
+        assertEquals("us-ascii", f.getCharset());
     }
     
     public void testGetParameter() throws Exception {

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldTest.java Thu Dec 31 17:52:56 2009
@@ -22,8 +22,8 @@
 import org.apache.james.mime4j.MimeException;
 import org.apache.james.mime4j.field.ContentTransferEncodingField;
 import org.apache.james.mime4j.field.ContentTypeField;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.UnstructuredField;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 
 import junit.framework.TestCase;
 

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldsTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldsTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldsTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/FieldsTest.java Thu Dec 31 17:52:56 2009
@@ -29,6 +29,7 @@
 
 import org.apache.james.mime4j.field.address.Group;
 import org.apache.james.mime4j.field.address.Mailbox;
+import org.apache.james.mime4j.field.impl.Fields;
 import org.apache.james.mime4j.util.ByteSequence;
 import org.apache.james.mime4j.util.ContentUtil;
 import org.apache.james.mime4j.util.MimeUtil;

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/field/UnstructuredFieldTest.java Thu Dec 31 17:52:56 2009
@@ -19,6 +19,8 @@
 
 package org.apache.james.mime4j.field;
 
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
+
 import junit.framework.TestCase;
 
 public class UnstructuredFieldTest extends TestCase {

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/CopyConstructorTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/CopyConstructorTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/CopyConstructorTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/CopyConstructorTest.java Thu Dec 31 17:52:56 2009
@@ -22,8 +22,8 @@
 import java.util.Arrays;
 import java.util.List;
 
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.impl.BodyFactory;
 import org.apache.james.mime4j.message.impl.BodyPart;
 import org.apache.james.mime4j.message.impl.MessageImpl;

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/EntityTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/EntityTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/EntityTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/EntityTest.java Thu Dec 31 17:52:56 2009
@@ -19,7 +19,7 @@
 
 package org.apache.james.mime4j.message;
 
-import org.apache.james.mime4j.field.DefaultFieldParser;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.Entity;
 import org.apache.james.mime4j.message.impl.BodyFactory;
 import org.apache.james.mime4j.message.impl.BodyPart;

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/HeaderTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/HeaderTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/HeaderTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/HeaderTest.java Thu Dec 31 17:52:56 2009
@@ -22,8 +22,8 @@
 import junit.framework.TestCase;
 
 import org.apache.commons.io.output.ByteArrayOutputStream;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.Field;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.util.CharsetUtil;
 
 public class HeaderTest extends TestCase {

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MessageTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MessageTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MessageTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MessageTest.java Thu Dec 31 17:52:56 2009
@@ -33,9 +33,9 @@
 import junit.framework.TestCase;
 
 import org.apache.commons.io.IOUtils;
-import org.apache.james.mime4j.field.DefaultFieldParser;
 import org.apache.james.mime4j.field.address.Group;
 import org.apache.james.mime4j.field.address.Mailbox;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.impl.BodyPart;
 import org.apache.james.mime4j.message.impl.MessageImpl;
 import org.apache.james.mime4j.message.impl.MultipartImpl;

Modified: james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MultipartFormTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MultipartFormTest.java?rev=894910&r1=894909&r2=894910&view=diff
==============================================================================
--- james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MultipartFormTest.java (original)
+++ james/mime4j/branches/cycleclean/core/src/test/java/org/apache/james/mime4j/message/MultipartFormTest.java Thu Dec 31 17:52:56 2009
@@ -23,7 +23,7 @@
 
 import junit.framework.TestCase;
 
-import org.apache.james.mime4j.field.DefaultFieldParser;
+import org.apache.james.mime4j.field.impl.DefaultFieldParser;
 import org.apache.james.mime4j.message.impl.BodyFactory;
 import org.apache.james.mime4j.message.impl.BodyPart;
 import org.apache.james.mime4j.message.impl.MessageImpl;



Mime
View raw message