james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1145308 [5/7] - in /james/mime4j/trunk: core/src/main/java/org/apache/james/mime4j/ core/src/main/java/org/apache/james/mime4j/codec/ core/src/main/java/org/apache/james/mime4j/io/ core/src/main/java/org/apache/james/mime4j/parser/ core/sr...
Date Mon, 11 Jul 2011 19:48:57 GMT
Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/datetime/DateTime.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/datetime/DateTime.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/datetime/DateTime.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/datetime/DateTime.java Mon Jul 11 19:48:50 2011
@@ -161,5 +161,5 @@ public class DateTime {
         return true;
     }
 
-    
+
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/AddressListField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/AddressListField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/AddressListField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/AddressListField.java Mon Jul 11 19:48:50 2011
@@ -25,4 +25,4 @@ public interface AddressListField extend
 
     AddressList getAddressList();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDescriptionField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDescriptionField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDescriptionField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDescriptionField.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentDescriptionField
 
     /**
      * Gets the content description defined in this field.
-     * 
+     *
      * @return the content description or <code>null</code> if not set.
      */
     String getDescription();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDispositionField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDispositionField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDispositionField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentDispositionField.java Mon Jul 11 19:48:50 2011
@@ -41,14 +41,14 @@ public interface ContentDispositionField
 
     /**
      * Gets the disposition type defined in this Content-Disposition field.
-     * 
+     *
      * @return the disposition type or an empty string if not set.
      */
     String getDispositionType();
 
     /**
      * Gets the value of a parameter. Parameter names are case-insensitive.
-     * 
+     *
      * @param name
      *            the name of the parameter to get.
      * @return the parameter value or <code>null</code> if not set.
@@ -57,14 +57,14 @@ public interface ContentDispositionField
 
     /**
      * Gets all parameters.
-     * 
+     *
      * @return the parameters.
      */
     Map<String, String> getParameters();
 
     /**
      * Determines if the disposition type of this field matches the given one.
-     * 
+     *
      * @param dispositionType
      *            the disposition type to match against.
      * @return <code>true</code> if the disposition type of this field
@@ -75,7 +75,7 @@ public interface ContentDispositionField
     /**
      * Return <code>true</code> if the disposition type of this field is
      * <i>inline</i>, <code>false</code> otherwise.
-     * 
+     *
      * @return <code>true</code> if the disposition type of this field is
      *         <i>inline</i>, <code>false</code> otherwise.
      */
@@ -84,7 +84,7 @@ public interface ContentDispositionField
     /**
      * Return <code>true</code> if the disposition type of this field is
      * <i>attachment</i>, <code>false</code> otherwise.
-     * 
+     *
      * @return <code>true</code> if the disposition type of this field is
      *         <i>attachment</i>, <code>false</code> otherwise.
      */
@@ -92,7 +92,7 @@ public interface ContentDispositionField
 
     /**
      * Gets the value of the <code>filename</code> parameter if set.
-     * 
+     *
      * @return the <code>filename</code> parameter value or <code>null</code>
      *         if not set.
      */
@@ -101,7 +101,7 @@ public interface ContentDispositionField
     /**
      * Gets the value of the <code>creation-date</code> parameter if set and
      * valid.
-     * 
+     *
      * @return the <code>creation-date</code> parameter value or
      *         <code>null</code> if not set or invalid.
      */
@@ -110,7 +110,7 @@ public interface ContentDispositionField
     /**
      * Gets the value of the <code>modification-date</code> parameter if set
      * and valid.
-     * 
+     *
      * @return the <code>modification-date</code> parameter value or
      *         <code>null</code> if not set or invalid.
      */
@@ -119,7 +119,7 @@ public interface ContentDispositionField
     /**
      * Gets the value of the <code>read-date</code> parameter if set and
      * valid.
-     * 
+     *
      * @return the <code>read-date</code> parameter value or <code>null</code>
      *         if not set or invalid.
      */
@@ -127,10 +127,10 @@ public interface ContentDispositionField
 
     /**
      * Gets the value of the <code>size</code> parameter if set and valid.
-     * 
+     *
      * @return the <code>size</code> parameter value or <code>-1</code> if
      *         not set or invalid.
      */
     long getSize();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentIdField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentIdField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentIdField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentIdField.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentIdField extends 
 
     /**
      * Gets the content ID defined in this field.
-     * 
+     *
      * @return the content ID or <code>null</code> if not set.
      */
     String getId();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLanguageField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLanguageField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLanguageField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLanguageField.java Mon Jul 11 19:48:50 2011
@@ -25,9 +25,9 @@ public interface ContentLanguageField ex
 
     /**
      * Gets the content language(s) defined in this field.
-     * 
+     *
      * @return a list of content language(s).
      */
     List<String> getLanguages();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLengthField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLengthField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLengthField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLengthField.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentLengthField exte
 
     /**
      * Gets the content length value defined in this field.
-     * 
+     *
      * @return the content length value.
      */
     long getContentLength();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLocationField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLocationField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLocationField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentLocationField.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentLocationField ex
 
     /**
      * Gets the content location defined in this field.
-     * 
+     *
      * @return the content location or <code>null</code> if not set.
      */
     String getLocation();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentMD5Field.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentMD5Field.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentMD5Field.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentMD5Field.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentMD5Field extends
 
     /**
      * Gets the content MD5 raw value defined in this field.
-     * 
+     *
      * @return the content MD5 raw value or <code>null</code> if not set.
      */
     String getMD5Raw();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTransferEncodingField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTransferEncodingField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTransferEncodingField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTransferEncodingField.java Mon Jul 11 19:48:50 2011
@@ -23,9 +23,9 @@ public interface ContentTransferEncoding
 
     /**
      * Gets the encoding defined in this field.
-     * 
+     *
      * @return the content ID or <code>null</code> if not set.
      */
     String getEncoding();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTypeField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTypeField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTypeField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ContentTypeField.java Mon Jul 11 19:48:50 2011
@@ -38,7 +38,7 @@ public interface ContentTypeField extend
 
     /**
      * Gets the MIME type defined in this Content-Type field.
-     * 
+     *
      * @return the MIME type or an empty string if not set.
      */
     String getMimeType();
@@ -52,10 +52,10 @@ public interface ContentTypeField extend
      * Gets the subtype defined in this Content-Type field.
      */
     String getSubType();
-    
+
     /**
      * Gets the value of a parameter. Parameter names are case-insensitive.
-     * 
+     *
      * @param name
      *            the name of the parameter to get.
      * @return the parameter value or <code>null</code> if not set.
@@ -64,14 +64,14 @@ public interface ContentTypeField extend
 
     /**
      * Gets all parameters.
-     * 
+     *
      * @return the parameters.
      */
     Map<String, String> getParameters();
 
     /**
      * Determines if the MIME type of this field matches the given one.
-     * 
+     *
      * @param mimeType
      *            the MIME type to match against.
      * @return <code>true</code> if the MIME type of this field matches,
@@ -81,7 +81,7 @@ public interface ContentTypeField extend
 
     /**
      * Determines if the MIME type of this field is <code>multipart/*</code>.
-     * 
+     *
      * @return <code>true</code> if this field is has a
      *         <code>multipart/*</code> MIME type, <code>false</code>
      *         otherwise.
@@ -90,7 +90,7 @@ public interface ContentTypeField extend
 
     /**
      * Gets the value of the <code>boundary</code> parameter if set.
-     * 
+     *
      * @return the <code>boundary</code> parameter value or <code>null</code>
      *         if not set.
      */
@@ -98,10 +98,10 @@ public interface ContentTypeField extend
 
     /**
      * Gets the value of the <code>charset</code> parameter if set.
-     * 
+     *
      * @return the <code>charset</code> parameter value or <code>null</code>
      *         if not set.
      */
     String getCharset();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/DateTimeField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/DateTimeField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/DateTimeField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/DateTimeField.java Mon Jul 11 19:48:50 2011
@@ -25,4 +25,4 @@ public interface DateTimeField extends P
 
     Date getDate();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxField.java Mon Jul 11 19:48:50 2011
@@ -25,4 +25,4 @@ public interface MailboxField extends Pa
 
     Mailbox getMailbox();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxListField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxListField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxListField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MailboxListField.java Mon Jul 11 19:48:50 2011
@@ -25,4 +25,4 @@ public interface MailboxListField extend
 
     MailboxList getMailboxList();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MimeVersionField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MimeVersionField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MimeVersionField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/MimeVersionField.java Mon Jul 11 19:48:50 2011
@@ -25,4 +25,4 @@ public interface MimeVersionField extend
 
     int getMajorVersion();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParseException.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParseException.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParseException.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParseException.java Mon Jul 11 19:48:50 2011
@@ -30,7 +30,7 @@ public class ParseException extends Mime
 
     /**
      * Constructs a new parse exception with the specified detail message.
-     * 
+     *
      * @param message
      *            detail message
      */
@@ -40,7 +40,7 @@ public class ParseException extends Mime
 
     /**
      * Constructs a new parse exception with the specified cause.
-     * 
+     *
      * @param cause
      *            the cause
      */
@@ -51,7 +51,7 @@ public class ParseException extends Mime
     /**
      * Constructs a new parse exception with the specified detail message and
      * cause.
-     * 
+     *
      * @param message
      *            detail message
      * @param cause

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParsedField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParsedField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParsedField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/ParsedField.java Mon Jul 11 19:48:50 2011
@@ -27,7 +27,7 @@ public interface ParsedField extends Fie
     /**
      * Returns <code>true</code> if this field is valid, i.e. no errors were
      * encountered while parsing the field value.
-     * 
+     *
      * @return <code>true</code> if this field is valid, <code>false</code>
      *         otherwise.
      * @see #getParseException()
@@ -38,7 +38,7 @@ public interface ParsedField extends Fie
      * Returns the exception that was thrown by the field parser while parsing
      * the field value. The result is <code>null</code> if the field is valid
      * and no errors were encountered.
-     * 
+     *
      * @return the exception that was thrown by the field parser or
      *         <code>null</code> if the field is valid.
      */

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/UnstructuredField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/UnstructuredField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/UnstructuredField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/field/UnstructuredField.java Mon Jul 11 19:48:50 2011
@@ -23,4 +23,4 @@ public interface UnstructuredField exten
 
     String getValue();
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AbstractField.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AbstractField.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AbstractField.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AbstractField.java Mon Jul 11 19:48:50 2011
@@ -33,26 +33,26 @@ public abstract class AbstractField impl
 
     protected final Field rawField;
     protected final DecodeMonitor monitor;
-    
+
     protected AbstractField(final Field rawField, final DecodeMonitor monitor) {
         this.rawField = rawField;
         this.monitor = monitor != null ? monitor : DecodeMonitor.SILENT;
     }
-    
+
     /**
-     * Gets the name of the field (<code>Subject</code>, 
+     * Gets the name of the field (<code>Subject</code>,
      * <code>From</code>, etc).
-     * 
+     *
      * @return the field name.
      */
     public String getName() {
         return rawField.getName();
     }
-    
+
     /**
-     * Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field 
+     * Gets the unfolded, unparsed and possibly encoded (see RFC 2047) field
      * body string.
-     * 
+     *
      * @return the unfolded unparsed field body string.
      */
     public String getBody() {
@@ -60,7 +60,7 @@ public abstract class AbstractField impl
     }
 
     /**
-     * Gets original (raw) representation of the field, if available, 
+     * Gets original (raw) representation of the field, if available,
      * <code>null</code> otherwise.
      */
     public ByteSequence getRaw() {
@@ -68,19 +68,19 @@ public abstract class AbstractField impl
     }
 
     /**
-     * @see ParsedField#isValidField() 
+     * @see ParsedField#isValidField()
      */
     public boolean isValidField() {
         return getParseException() == null;
     }
 
     /**
-     * @see ParsedField#getParseException() 
+     * @see ParsedField#getParseException()
      */
     public ParseException getParseException() {
         return null;
     }
-    
+
     protected RawField getRawField() {
         if (rawField instanceof RawField) {
             return ((RawField) rawField);
@@ -88,7 +88,7 @@ public abstract class AbstractField impl
             return new RawField(rawField.getName(), rawField.getBody());
         }
     }
-    
+
     @Override
     public String toString() {
         return rawField.toString();

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AddressListFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AddressListFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AddressListFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/AddressListFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -75,10 +75,10 @@ public class AddressListFieldImpl extend
     }
 
     public static final FieldParser<AddressListField> PARSER = new FieldParser<AddressListField>() {
-        
+
         public AddressListField parse(final Field rawField, final DecodeMonitor monitor) {
             return new AddressListFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDescriptionFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDescriptionFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDescriptionFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDescriptionFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -45,7 +45,7 @@ public class ContentDescriptionFieldImpl
             description = null;
         }
     }
-    
+
     public String getDescription() {
         if (!parsed) {
             parse();
@@ -54,11 +54,11 @@ public class ContentDescriptionFieldImpl
     }
 
     public static final FieldParser<ContentDescriptionField> PARSER = new FieldParser<ContentDescriptionField>() {
-        
+
         public ContentDescriptionField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentDescriptionFieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -203,12 +203,12 @@ public class ContentDispositionFieldImpl
                     .getDate();
         } catch (org.apache.james.mime4j.field.datetime.parser.ParseException e) {
             if (monitor.isListening()) {
-                monitor.warn(paramName + " parameter is invalid: " + value, 
+                monitor.warn(paramName + " parameter is invalid: " + value,
                         paramName + " parameter is ignored");
             }
             return null;
         } catch (TokenMgrError e) {
-            monitor.warn(paramName + " parameter is invalid: " + value, 
+            monitor.warn(paramName + " parameter is invalid: " + value,
                     paramName + "parameter is ignored");
             return null;
         }
@@ -249,10 +249,10 @@ public class ContentDispositionFieldImpl
     }
 
     public static final FieldParser<ContentDispositionField> PARSER = new FieldParser<ContentDispositionField>() {
-        
+
         public ContentDispositionField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentDispositionFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentDispositionFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -46,9 +46,9 @@ import org.apache.james.mime4j.stream.Ra
 public class ContentDispositionFieldLenientImpl extends AbstractField implements ContentDispositionField {
 
     private static final String DEFAULT_DATE_FORMAT = "EEE, dd MMM yyyy hh:mm:ss ZZZZ";
-    
+
     private final List<String> datePatterns;
-    
+
     private boolean parsed = false;
 
     private String dispositionType = "";
@@ -63,7 +63,7 @@ public class ContentDispositionFieldLeni
     private boolean readDateParsed;
     private Date readDate;
 
-    ContentDispositionFieldLenientImpl(final Field rawField, 
+    ContentDispositionFieldLenientImpl(final Field rawField,
             final Collection<String> dateParsers, final DecodeMonitor monitor) {
         super(rawField, monitor);
         this.datePatterns = new ArrayList<String>();
@@ -189,17 +189,17 @@ public class ContentDispositionFieldLeni
             }
         }
         if (monitor.isListening()) {
-            monitor.warn(paramName + " parameter is invalid: " + value, 
+            monitor.warn(paramName + " parameter is invalid: " + value,
                     paramName + " parameter is ignored");
         }
         return null;
     }
 
     public static final FieldParser<ContentDispositionField> PARSER = new FieldParser<ContentDispositionField>() {
-        
+
         public ContentDispositionField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentDispositionFieldLenientImpl(rawField, null, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentIdFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentIdFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentIdFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentIdFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -45,7 +45,7 @@ public class ContentIdFieldImpl extends 
             id = null;
         }
     }
-    
+
     public String getId() {
         if (!parsed) {
             parse();
@@ -54,11 +54,11 @@ public class ContentIdFieldImpl extends 
     }
 
     public static final FieldParser<ContentIdField> PARSER = new FieldParser<ContentIdField>() {
-        
+
         public ContentIdField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentIdFieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -71,11 +71,11 @@ public class ContentLanguageFieldImpl ex
     }
 
     public static final FieldParser<ContentLanguageField> PARSER = new FieldParser<ContentLanguageField>() {
-        
+
         public ContentLanguageField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentLanguageFieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLanguageFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -40,7 +40,7 @@ public class ContentLanguageFieldLenient
 
     private final static int   COMMA = ',';
     private final static BitSet DELIM = RawFieldParser.INIT_BITSET(COMMA);
-    
+
     private boolean parsed = false;
     private List<String> languages;
 
@@ -88,11 +88,11 @@ public class ContentLanguageFieldLenient
     }
 
     public static final FieldParser<ContentLanguageField> PARSER = new FieldParser<ContentLanguageField>() {
-        
+
         public ContentLanguageField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentLanguageFieldLenientImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLengthFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLengthFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLengthFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLengthFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -46,19 +46,19 @@ public class ContentLengthFieldImpl exte
                 if (contentLength < 0) {
                     contentLength = -1;
                     if (monitor.isListening()) {
-                        monitor.warn("Negative content length: " + body, 
+                        monitor.warn("Negative content length: " + body,
                                 "ignoring Content-Length header");
                     }
                 }
             } catch (NumberFormatException e) {
                 if (monitor.isListening()) {
-                    monitor.warn("Invalid content length: " + body, 
+                    monitor.warn("Invalid content length: " + body,
                             "ignoring Content-Length header");
                 }
             }
         }
     }
-    
+
     public long getContentLength() {
         if (!parsed) {
             parse();
@@ -67,10 +67,10 @@ public class ContentLengthFieldImpl exte
     }
 
     public static final FieldParser<ContentLengthField> PARSER = new FieldParser<ContentLengthField>() {
-        
+
         public ContentLengthField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentLengthFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -57,12 +57,12 @@ public class ContentLocationFieldImpl ex
                  * Read more: http://www.faqs.org/rfcs/rfc2017.html#ixzz0aufO9nRL
                  */
                 location = parser.parse().replaceAll("\\s", "");
-            } catch (ParseException ex) { 
+            } catch (ParseException ex) {
                 parseException = ex;
             }
         }
     }
-    
+
     public String getLocation() {
         if (!parsed) {
             parse();
@@ -76,11 +76,11 @@ public class ContentLocationFieldImpl ex
     }
 
     public static final FieldParser<ContentLocationField> PARSER = new FieldParser<ContentLocationField>() {
-        
+
         public ContentLocationField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentLocationFieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentLocationFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -68,7 +68,7 @@ public class ContentLocationFieldLenient
         }
         this.location = sb.toString();
     }
-    
+
     public String getLocation() {
         if (!parsed) {
             parse();
@@ -77,11 +77,11 @@ public class ContentLocationFieldLenient
     }
 
     public static final FieldParser<ContentLocationField> PARSER = new FieldParser<ContentLocationField>() {
-        
+
         public ContentLocationField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentLocationFieldLenientImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentMD5FieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentMD5FieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentMD5FieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentMD5FieldImpl.java Mon Jul 11 19:48:50 2011
@@ -45,7 +45,7 @@ public class ContentMD5FieldImpl extends
             md5raw = null;
         }
     }
-    
+
     public String getMD5Raw() {
         if (!parsed) {
             parse();
@@ -54,11 +54,11 @@ public class ContentMD5FieldImpl extends
     }
 
     public static final FieldParser<ContentMD5Field> PARSER = new FieldParser<ContentMD5Field>() {
-        
+
         public ContentMD5Field parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentMD5FieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTransferEncodingFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -48,7 +48,7 @@ public class ContentTransferEncodingFiel
             encoding = null;
         }
     }
-    
+
     /**
      * @see org.apache.james.mime4j.dom.field.ContentTransferEncodingField#getEncoding()
      */
@@ -63,7 +63,7 @@ public class ContentTransferEncodingFiel
      * Gets the encoding of the given field if. Returns the default
      * <code>7bit</code> if not set or if <code>f</code> is
      * <code>null</code>.
-     * 
+     *
      * @return the encoding.
      */
     public static String getEncoding(ContentTransferEncodingField f) {
@@ -74,10 +74,10 @@ public class ContentTransferEncodingFiel
     }
 
     public static final FieldParser<ContentTransferEncodingField> PARSER = new FieldParser<ContentTransferEncodingField>() {
-        
+
         public ContentTransferEncodingField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentTransferEncodingFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -149,7 +149,7 @@ public class ContentTypeFieldImpl extend
      * MIME type from the parent if child is <code>null</code> or hasn't got a
      * MIME type value set. If child's MIME type is multipart but no boundary
      * has been set the MIME type of child will be derived from the parent.
-     * 
+     *
      * @param child
      *            the child.
      * @param parent
@@ -175,7 +175,7 @@ public class ContentTypeFieldImpl extend
      * Gets the value of the <code>charset</code> parameter if set for the
      * given field. Returns the default <code>us-ascii</code> if not set or if
      * <code>f</code> is <code>null</code>.
-     * 
+     *
      * @return the <code>charset</code> parameter value.
      */
     public static String getCharset(ContentTypeField f) {
@@ -223,10 +223,10 @@ public class ContentTypeFieldImpl extend
     }
 
     public static final FieldParser<ContentTypeField> PARSER = new FieldParser<ContentTypeField>() {
-        
+
         public ContentTypeField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentTypeFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/ContentTypeFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -37,7 +37,7 @@ import org.apache.james.mime4j.stream.Ra
  * Represents a <code>Content-Type</code> field.
  */
 public class ContentTypeFieldLenientImpl extends AbstractField implements ContentTypeField {
-    
+
     private boolean parsed = false;
 
     private String mimeType = null;
@@ -145,11 +145,11 @@ public class ContentTypeFieldLenientImpl
     }
 
     public static final FieldParser<ContentTypeField> PARSER = new FieldParser<ContentTypeField>() {
-        
+
         public ContentTypeField parse(final Field rawField, final DecodeMonitor monitor) {
             return new ContentTypeFieldLenientImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DateTimeFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DateTimeFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DateTimeFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DateTimeFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -80,10 +80,10 @@ public class DateTimeFieldImpl extends A
     }
 
     public static final FieldParser<DateTimeField> PARSER = new FieldParser<DateTimeField>() {
-        
+
         public DateTimeField parse(final Field rawField, final DecodeMonitor monitor) {
             return new DateTimeFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DefaultFieldParser.java Mon Jul 11 19:48:50 2011
@@ -37,11 +37,11 @@ import org.apache.james.mime4j.util.Cont
 public class DefaultFieldParser extends DelegatingFieldParser {
 
     private static final DefaultFieldParser PARSER = new DefaultFieldParser();
-    
+
 
     /**
      * Gets the default parser used to parse fields.
-     * 
+     *
      * @return the default field parser
      */
     public static DefaultFieldParser getParser() {
@@ -54,21 +54,21 @@ public class DefaultFieldParser extends 
      * <code>Field</code> class. The type of the class returned depends on the
      * field name; see {@link #parse(String)} for a table of field names and
      * their corresponding classes.
-     * 
+     *
      * @param raw the bytes to parse.
      * @param monitor a DecodeMonitor object used while parsing/decoding.
      * @return a <code>ParsedField</code> instance.
      * @throws MimeException if the raw string cannot be split into field name and body.
      */
     public static ParsedField parse(
-            final ByteSequence raw, 
+            final ByteSequence raw,
             final DecodeMonitor monitor) throws MimeException {
         Field rawField = RawFieldParser.DEFAULT.parseField(raw);
         return PARSER.parse(rawField, monitor);
     }
 
     /**
-     * Parses the given string and returns an instance of the 
+     * Parses the given string and returns an instance of the
      * <code>Field</code> class. The type of the class returned depends on
      * the field name:
      * <p>
@@ -83,7 +83,7 @@ public class DefaultFieldParser extends 
      *   <tr><td>{@link AddressListFieldImpl}</td><td>To, Cc, Bcc, Reply-To, Resent-To, Resent-Cc, Resent-Bcc</td></tr>
      *   <tr><td>{@link UnstructuredFieldImpl}</td><td>Subject and others</td></tr>
      * </table>
-     * 
+     *
      * @param rawStr the string to parse.
      * @return a <code>ParsedField</code> instance.
      * @throws MimeException if the raw string cannot be split into field name and body.
@@ -104,7 +104,7 @@ public class DefaultFieldParser extends 
 
     public DefaultFieldParser() {
         super(UnstructuredFieldImpl.PARSER);
-        setFieldParser(FieldName.CONTENT_TYPE, 
+        setFieldParser(FieldName.CONTENT_TYPE,
                 ContentTypeFieldImpl.PARSER);
         setFieldParser(FieldName.CONTENT_LENGTH,
                 ContentLengthFieldImpl.PARSER);

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/DelegatingFieldParser.java Mon Jul 11 19:48:50 2011
@@ -37,7 +37,7 @@ public class DelegatingFieldParser imple
         this.defaultParser = defaultParser;
         this.parsers = new HashMap<String, FieldParser<? extends ParsedField>>();
     }
-    
+
     /**
      * Sets the parser used for the field named <code>name</code>.
      * @param name the name of the field
@@ -46,7 +46,7 @@ public class DelegatingFieldParser imple
     public void setFieldParser(final String name, final FieldParser<? extends ParsedField> parser) {
         parsers.put(name.toLowerCase(), parser);
     }
-    
+
     public FieldParser<? extends ParsedField> getParser(final String name) {
         final FieldParser<? extends ParsedField> field = parsers.get(name.toLowerCase());
         if (field == null) {
@@ -54,7 +54,7 @@ public class DelegatingFieldParser imple
         }
         return field;
     }
-    
+
     public ParsedField parse(final Field rawField, final DecodeMonitor monitor) {
         final FieldParser<? extends ParsedField> parser = getParser(rawField.getName());
         return parser.parse(rawField, monitor);

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java Mon Jul 11 19:48:50 2011
@@ -62,7 +62,7 @@ public class Fields {
      * Creates a <i>Content-Type</i> field from the specified raw field value.
      * The specified string gets folded into a multiple-line representation if
      * necessary but is otherwise taken as is.
-     * 
+     *
      * @param contentType
      *            raw content type containing a MIME type and optional
      *            parameters.
@@ -76,7 +76,7 @@ public class Fields {
     /**
      * Creates a <i>Content-Type</i> field from the specified MIME type and
      * parameters.
-     * 
+     *
      * @param mimeType
      *            a MIME type (such as <code>&quot;text/plain&quot;</code> or
      *            <code>&quot;application/octet-stream&quot;</code>).
@@ -108,7 +108,7 @@ public class Fields {
     /**
      * Creates a <i>Content-Transfer-Encoding</i> field from the specified raw
      * field value.
-     * 
+     *
      * @param contentTransferEncoding
      *            an encoding mechanism such as <code>&quot;7-bit&quot;</code>
      *            or <code>&quot;quoted-printable&quot;</code>.
@@ -124,7 +124,7 @@ public class Fields {
      * Creates a <i>Content-Disposition</i> field from the specified raw field
      * value. The specified string gets folded into a multiple-line
      * representation if necessary but is otherwise taken as is.
-     * 
+     *
      * @param contentDisposition
      *            raw content disposition containing a disposition type and
      *            optional parameters.
@@ -139,7 +139,7 @@ public class Fields {
     /**
      * Creates a <i>Content-Disposition</i> field from the specified
      * disposition type and parameters.
-     * 
+     *
      * @param dispositionType
      *            a disposition type (usually <code>&quot;inline&quot;</code>
      *            or <code>&quot;attachment&quot;</code>).
@@ -171,7 +171,7 @@ public class Fields {
     /**
      * Creates a <i>Content-Disposition</i> field from the specified
      * disposition type and filename.
-     * 
+     *
      * @param dispositionType
      *            a disposition type (usually <code>&quot;inline&quot;</code>
      *            or <code>&quot;attachment&quot;</code>).
@@ -188,7 +188,7 @@ public class Fields {
 
     /**
      * Creates a <i>Content-Disposition</i> field from the specified values.
-     * 
+     *
      * @param dispositionType
      *            a disposition type (usually <code>&quot;inline&quot;</code>
      *            or <code>&quot;attachment&quot;</code>).
@@ -208,7 +208,7 @@ public class Fields {
 
     /**
      * Creates a <i>Content-Disposition</i> field from the specified values.
-     * 
+     *
      * @param dispositionType
      *            a disposition type (usually <code>&quot;inline&quot;</code>
      *            or <code>&quot;attachment&quot;</code>).
@@ -258,7 +258,7 @@ public class Fields {
     /**
      * Creates a <i>Date</i> field from the specified <code>Date</code>
      * value. The default time zone of the host is used to format the date.
-     * 
+     *
      * @param date
      *            date value for the header field.
      * @return the newly created <i>Date</i> field.
@@ -270,7 +270,7 @@ public class Fields {
     /**
      * Creates a date field from the specified field name and <code>Date</code>
      * value. The default time zone of the host is used to format the date.
-     * 
+     *
      * @param fieldName
      *            a field name such as <code>Date</code> or
      *            <code>Resent-Date</code>.
@@ -286,7 +286,7 @@ public class Fields {
     /**
      * Creates a date field from the specified field name, <code>Date</code>
      * and <code>TimeZone</code> values.
-     * 
+     *
      * @param fieldName
      *            a field name such as <code>Date</code> or
      *            <code>Resent-Date</code>.
@@ -303,7 +303,7 @@ public class Fields {
 
     /**
      * Creates a <i>Message-ID</i> field for the specified host name.
-     * 
+     *
      * @param hostname
      *            host name to be included in the message ID or
      *            <code>null</code> if no host name should be included.
@@ -317,7 +317,7 @@ public class Fields {
     /**
      * Creates a <i>Subject</i> field from the specified string value. The
      * specified string may contain non-ASCII characters.
-     * 
+     *
      * @param subject
      *            the subject string.
      * @return the newly created <i>Subject</i> field.
@@ -332,7 +332,7 @@ public class Fields {
 
     /**
      * Creates a <i>Sender</i> field for the specified mailbox address.
-     * 
+     *
      * @param mailbox
      *            address to be included in the field.
      * @return the newly created <i>Sender</i> field.
@@ -343,7 +343,7 @@ public class Fields {
 
     /**
      * Creates a <i>From</i> field for the specified mailbox address.
-     * 
+     *
      * @param mailbox
      *            address to be included in the field.
      * @return the newly created <i>From</i> field.
@@ -354,7 +354,7 @@ public class Fields {
 
     /**
      * Creates a <i>From</i> field for the specified mailbox addresses.
-     * 
+     *
      * @param mailboxes
      *            addresses to be included in the field.
      * @return the newly created <i>From</i> field.
@@ -365,7 +365,7 @@ public class Fields {
 
     /**
      * Creates a <i>From</i> field for the specified mailbox addresses.
-     * 
+     *
      * @param mailboxes
      *            addresses to be included in the field.
      * @return the newly created <i>From</i> field.
@@ -376,7 +376,7 @@ public class Fields {
 
     /**
      * Creates a <i>To</i> field for the specified mailbox or group address.
-     * 
+     *
      * @param address
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>To</i> field.
@@ -387,7 +387,7 @@ public class Fields {
 
     /**
      * Creates a <i>To</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>To</i> field.
@@ -398,7 +398,7 @@ public class Fields {
 
     /**
      * Creates a <i>To</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>To</i> field.
@@ -409,7 +409,7 @@ public class Fields {
 
     /**
      * Creates a <i>Cc</i> field for the specified mailbox or group address.
-     * 
+     *
      * @param address
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Cc</i> field.
@@ -420,7 +420,7 @@ public class Fields {
 
     /**
      * Creates a <i>Cc</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Cc</i> field.
@@ -431,7 +431,7 @@ public class Fields {
 
     /**
      * Creates a <i>Cc</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Cc</i> field.
@@ -442,7 +442,7 @@ public class Fields {
 
     /**
      * Creates a <i>Bcc</i> field for the specified mailbox or group address.
-     * 
+     *
      * @param address
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Bcc</i> field.
@@ -453,7 +453,7 @@ public class Fields {
 
     /**
      * Creates a <i>Bcc</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Bcc</i> field.
@@ -464,7 +464,7 @@ public class Fields {
 
     /**
      * Creates a <i>Bcc</i> field for the specified mailbox or group addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Bcc</i> field.
@@ -476,7 +476,7 @@ public class Fields {
     /**
      * Creates a <i>Reply-To</i> field for the specified mailbox or group
      * address.
-     * 
+     *
      * @param address
      *            mailbox or group address to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
@@ -488,7 +488,7 @@ public class Fields {
     /**
      * Creates a <i>Reply-To</i> field for the specified mailbox or group
      * addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
@@ -500,7 +500,7 @@ public class Fields {
     /**
      * Creates a <i>Reply-To</i> field for the specified mailbox or group
      * addresses.
-     * 
+     *
      * @param addresses
      *            mailbox or group addresses to be included in the field.
      * @return the newly created <i>Reply-To</i> field.
@@ -513,7 +513,7 @@ public class Fields {
      * Creates a mailbox field from the specified field name and mailbox
      * address. Valid field names are <code>Sender</code> and
      * <code>Resent-Sender</code>.
-     * 
+     *
      * @param fieldName
      *            the name of the mailbox field (<code>Sender</code> or
      *            <code>Resent-Sender</code>).
@@ -530,7 +530,7 @@ public class Fields {
      * Creates a mailbox-list field from the specified field name and mailbox
      * addresses. Valid field names are <code>From</code> and
      * <code>Resent-From</code>.
-     * 
+     *
      * @param fieldName
      *            the name of the mailbox field (<code>From</code> or
      *            <code>Resent-From</code>).
@@ -550,7 +550,7 @@ public class Fields {
      * <code>Cc</code>, <code>Bcc</code>, <code>Reply-To</code>,
      * <code>Resent-To</code>, <code>Resent-Cc</code> and
      * <code>Resent-Bcc</code>.
-     * 
+     *
      * @param fieldName
      *            the name of the mailbox field (<code>To</code>,
      *            <code>Cc</code>, <code>Bcc</code>, <code>Reply-To</code>,

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/LenientFieldParser.java Mon Jul 11 19:48:50 2011
@@ -37,10 +37,10 @@ import org.apache.james.mime4j.util.Cont
 public class LenientFieldParser extends DelegatingFieldParser {
 
     private static final LenientFieldParser PARSER = new LenientFieldParser();
-    
+
     /**
      * Gets the default parser used to parse fields.
-     * 
+     *
      * @return the default field parser
      */
     public static LenientFieldParser getParser() {
@@ -51,23 +51,23 @@ public class LenientFieldParser extends 
      * Parses the given byte sequence and returns an instance of the
      * <code>Field</code> class. The type of the class returned depends on the
      * field name.
-     * 
+     *
      * @param raw the bytes to parse.
      * @param monitor a DecodeMonitor object used while parsing/decoding.
      * @return a <code>ParsedField</code> instance.
      * @throws MimeException if the raw string cannot be split into field name and body.
      */
     public static ParsedField parse(
-            final ByteSequence raw, 
+            final ByteSequence raw,
             final DecodeMonitor monitor) throws MimeException {
         Field rawField = RawFieldParser.DEFAULT.parseField(raw);
         return PARSER.parse(rawField, monitor);
     }
 
     /**
-     * Parses the given string and returns an instance of the <code>Field</code> class. 
+     * Parses the given string and returns an instance of the <code>Field</code> class.
      * The type of the class returned depends on the field name.
-     * 
+     *
      * @param rawStr the string to parse.
      * @param monitor a DecodeMonitor object used while parsing/decoding.
      * @return a <code>ParsedField</code> instance.
@@ -89,8 +89,8 @@ public class LenientFieldParser extends 
 
     public LenientFieldParser() {
         super(UnstructuredFieldImpl.PARSER);
-        setFieldParser(FieldName.CONTENT_TYPE, 
-                ContentTypeFieldLenientImpl.PARSER);        // lenient 
+        setFieldParser(FieldName.CONTENT_TYPE,
+                ContentTypeFieldLenientImpl.PARSER);        // lenient
         setFieldParser(FieldName.CONTENT_LENGTH,
                 ContentLengthFieldImpl.PARSER);             // default
         setFieldParser(FieldName.CONTENT_TRANSFER_ENCODING,

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -74,10 +74,10 @@ public class MailboxFieldImpl extends Ab
     }
 
     public static final FieldParser<MailboxField> PARSER = new FieldParser<MailboxField>() {
-        
+
         public MailboxField parse(final Field rawField, final DecodeMonitor monitor) {
             return new MailboxFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -74,10 +74,10 @@ public class MailboxListFieldImpl extend
     }
 
     public static final FieldParser<MailboxListField> PARSER = new FieldParser<MailboxListField>() {
-        
+
         public MailboxListField parse(final Field rawField, final DecodeMonitor monitor) {
             return new MailboxListFieldImpl(rawField, monitor);
         }
-        
+
     };
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MailboxListFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -61,7 +61,7 @@ public class MailboxListFieldLenientImpl
         if (buf == null) {
             String body = f.getBody();
             if (body == null) {
-                mailboxList = new MailboxList(Collections.<Mailbox>emptyList(), true);            
+                mailboxList = new MailboxList(Collections.<Mailbox>emptyList(), true);
                 return;
             }
             buf = ContentUtil.encode(body);

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -36,11 +36,11 @@ public class MimeVersionFieldImpl extend
 
     public static final int DEFAULT_MINOR_VERSION = 0;
     public static final int DEFAULT_MAJOR_VERSION = 1;
-    
+
     private boolean parsed = false;
     private int major = DEFAULT_MAJOR_VERSION;
     private int minor = DEFAULT_MINOR_VERSION;
-    private ParseException parsedException;    
+    private ParseException parsedException;
 
     MimeVersionFieldImpl(Field rawField, DecodeMonitor monitor) {
         super(rawField, monitor);
@@ -90,11 +90,11 @@ public class MimeVersionFieldImpl extend
     }
 
     public static final FieldParser<MimeVersionField> PARSER = new FieldParser<MimeVersionField>() {
-        
+
         public MimeVersionField parse(final Field rawField, final DecodeMonitor monitor) {
             return new MimeVersionFieldImpl(rawField, monitor);
         }
-        
+
     };
-    
+
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldLenientImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldLenientImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldLenientImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/MimeVersionFieldLenientImpl.java Mon Jul 11 19:48:50 2011
@@ -38,10 +38,10 @@ public class MimeVersionFieldLenientImpl
 
     private final static int FULL_STOP  = '.';
     private final static BitSet DELIM = RawFieldParser.INIT_BITSET(FULL_STOP);
-    
+
     public static final int DEFAULT_MINOR_VERSION = 0;
     public static final int DEFAULT_MAJOR_VERSION = 1;
-    
+
     private boolean parsed = false;
     private int major = DEFAULT_MAJOR_VERSION;
     private int minor = DEFAULT_MINOR_VERSION;
@@ -103,11 +103,11 @@ public class MimeVersionFieldLenientImpl
     }
 
     public static final FieldParser<MimeVersionField> PARSER = new FieldParser<MimeVersionField>() {
-        
+
         public MimeVersionField parse(final Field rawField, final DecodeMonitor monitor) {
             return new MimeVersionFieldLenientImpl(rawField, monitor);
         }
-        
+
     };
-    
+
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/UnstructuredFieldImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/UnstructuredFieldImpl.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/UnstructuredFieldImpl.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/UnstructuredFieldImpl.java Mon Jul 11 19:48:50 2011
@@ -56,11 +56,11 @@ public class UnstructuredFieldImpl exten
     }
 
     public static final FieldParser<UnstructuredField> PARSER = new FieldParser<UnstructuredField>() {
-        
+
         public UnstructuredField parse(final Field rawField, final DecodeMonitor monitor) {
             return new UnstructuredFieldImpl(rawField, monitor);
         }
-        
+
     };
 
 }

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressBuilder.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressBuilder.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressBuilder.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressBuilder.java Mon Jul 11 19:48:50 2011
@@ -30,14 +30,14 @@ import org.apache.james.mime4j.dom.addre
 public class AddressBuilder {
 
     public static final AddressBuilder DEFAULT = new AddressBuilder();
-    
+
     protected AddressBuilder() {
         super();
     }
-    
+
     /**
      * Parses the specified raw string into an address.
-     * 
+     *
      * @param rawAddressString
      *            string to parse.
      * @param monitor the DecodeMonitor to be used while parsing/decoding
@@ -57,7 +57,7 @@ public class AddressBuilder {
     /**
      * Parse the address list string, such as the value of a From, To, Cc, Bcc,
      * Sender, or Reply-To header.
-     * 
+     *
      * The string MUST be unfolded already.
      * @param monitor the DecodeMonitor to be used while parsing/decoding
      */
@@ -74,7 +74,7 @@ public class AddressBuilder {
 
     /**
      * Parses the specified raw string into a mailbox address.
-     * 
+     *
      * @param rawMailboxString
      *            string to parse.
      * @param monitor the DecodeMonitor to be used while parsing/decoding.
@@ -95,7 +95,7 @@ public class AddressBuilder {
 
     /**
      * Parses the specified raw string into a group address.
-     * 
+     *
      * @param rawGroupString
      *            string to parse.
      * @return a <code>Group</code> object for the specified string.
@@ -106,7 +106,7 @@ public class AddressBuilder {
         Address address = parseAddress(rawGroupString, monitor);
         if (!(address instanceof Group))
             throw new ParseException("Not a group address");
-    
+
         return (Group) address;
     }
 

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressFormatter.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressFormatter.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressFormatter.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/AddressFormatter.java Mon Jul 11 19:48:50 2011
@@ -27,27 +27,27 @@ import org.apache.james.mime4j.dom.addre
 public class AddressFormatter {
 
     public static final AddressFormatter DEFAULT = new AddressFormatter();
-    
+
     protected AddressFormatter() {
         super();
     }
-    
+
     /**
      * Formats the address as a human readable string, not including the route.
      * The resulting string is intended for display purposes only and cannot be
      * used for transport purposes.
-     * 
+     *
      * For example, if the unparsed address was
-     * 
+     *
      * <"Joe Cheng"@joecheng.com>
-     * 
+     *
      * this method would return
-     * 
+     *
      * <Joe Cheng@joecheng.com>
-     * 
+     *
      * which is not valid for transport; the local part would need to be
      * re-quoted.
-     * 
+     *
      * @param includeRoute
      *            <code>true</code> if the route should be included if it
      *            exists, <code>false</code> otherwise.
@@ -71,7 +71,7 @@ public class AddressFormatter {
      * transport purposes. The route is never included in this representation
      * because routes are obsolete and RFC 5322 states that obsolete syntactic
      * forms MUST NOT be generated.
-     * 
+     *
      * @return a string representation of this address intended for transport
      *         purposes.
      */
@@ -87,7 +87,7 @@ public class AddressFormatter {
             throw new IllegalArgumentException("Unsuppported Address class: " + address.getClass());
         }
     }
-    
+
     public void format(final StringBuilder sb, final Mailbox mailbox, boolean includeRoute) {
         if (sb == null) {
             throw new IllegalArgumentException("StringBuilder may not be null");
@@ -117,13 +117,13 @@ public class AddressFormatter {
             sb.append('>');
         }
     }
-    
+
     public String format(final Mailbox mailbox, boolean includeRoute) {
         StringBuilder sb = new StringBuilder();
         format(sb, mailbox, includeRoute);
         return sb.toString();
     }
-    
+
     public void encode(final StringBuilder sb, final Mailbox mailbox) {
         if (sb == null) {
             throw new IllegalArgumentException("StringBuilder may not be null");
@@ -147,7 +147,7 @@ public class AddressFormatter {
             sb.append('>');
         }
     }
-    
+
     public String encode(final Mailbox mailbox) {
         StringBuilder sb = new StringBuilder();
         encode(sb, mailbox);
@@ -176,13 +176,13 @@ public class AddressFormatter {
         }
         sb.append(";");
     }
-    
+
     public String format(final Group group, boolean includeRoute) {
         StringBuilder sb = new StringBuilder();
         format(sb, group, includeRoute);
         return sb.toString();
     }
-    
+
     public void encode(final StringBuilder sb, final Group group) {
         if (sb == null) {
             throw new IllegalArgumentException("StringBuilder may not be null");
@@ -212,4 +212,4 @@ public class AddressFormatter {
         return sb.toString();
     }
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/BaseNode.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/BaseNode.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/BaseNode.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/address/BaseNode.java Mon Jul 11 19:48:50 2011
@@ -20,8 +20,8 @@
 package org.apache.james.mime4j.field.address;
 
 public abstract class BaseNode implements Node {
-  
+
   public Token firstToken;
   public Token lastToken;
 
-}
\ No newline at end of file
+}

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractEntity.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractEntity.java?rev=1145308&r1=1145307&r2=1145308&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractEntity.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractEntity.java Mon Jul 11 19:48:50 2011
@@ -55,44 +55,44 @@ public abstract class AbstractEntity imp
     /**
      * Gets the parent entity of this entity.
      * Returns <code>null</code> if this is the root entity.
-     * 
+     *
      * @return the parent or <code>null</code>.
      */
     public Entity getParent() {
         return parent;
     }
-    
+
     /**
      * Sets the parent entity of this entity.
-     * 
+     *
      * @param parent the parent entity or <code>null</code> if
      *        this will be the root entity.
      */
     public void setParent(Entity parent) {
         this.parent = parent;
     }
-    
+
     /**
      * Gets the entity header.
-     * 
+     *
      * @return the header.
      */
     public Header getHeader() {
         return header;
     }
-    
+
     /**
      * Sets the entity header.
-     * 
+     *
      * @param header the header.
      */
     public void setHeader(Header header) {
         this.header = header;
     }
-    
+
     /**
      * Gets the body of this entity.
-     * 
+     *
      * @return the body,
      */
     public Body getBody() {
@@ -101,7 +101,7 @@ public abstract class AbstractEntity imp
 
     /**
      * Sets the body of this entity.
-     * 
+     *
      * @param body the body.
      * @throws IllegalStateException if the body has already been set.
      */
@@ -117,7 +117,7 @@ public abstract class AbstractEntity imp
      * Removes and returns the body of this entity. The removed body may be
      * attached to another entity. If it is no longer needed it should be
      * {@link Disposable#dispose() disposed} of.
-     * 
+     *
      * @return the removed body or <code>null</code> if no body was set.
      */
     public Body removeBody() {
@@ -135,7 +135,7 @@ public abstract class AbstractEntity imp
      * Sets the specified message as body of this entity and the content type to
      * &quot;message/rfc822&quot;. A <code>Header</code> is created if this
      * entity does not already have one.
-     * 
+     *
      * @param message
      *            the message to set as body.
      */
@@ -148,7 +148,7 @@ public abstract class AbstractEntity imp
      * content type accordingly and creates a message boundary string. A
      * <code>Header</code> is created if this entity does not already have
      * one.
-     * 
+     *
      * @param multipart
      *            the multipart to set as body.
      */
@@ -165,7 +165,7 @@ public abstract class AbstractEntity imp
      * content type accordingly and creates a message boundary string. A
      * <code>Header</code> is created if this entity does not already have
      * one.
-     * 
+     *
      * @param multipart
      *            the multipart to set as body.
      * @param parameters
@@ -185,7 +185,7 @@ public abstract class AbstractEntity imp
      * Sets the specified <code>TextBody</code> as body of this entity and the
      * content type to &quot;text/plain&quot;. A <code>Header</code> is
      * created if this entity does not already have one.
-     * 
+     *
      * @param textBody
      *            the <code>TextBody</code> to set as body.
      * @see org.apache.james.mime4j.message.BodyFactory#textBody(String)
@@ -199,7 +199,7 @@ public abstract class AbstractEntity imp
      * sets the content type according to the specified sub-type. A
      * <code>Header</code> is created if this entity does not already have
      * one.
-     * 
+     *
      * @param textBody
      *            the <code>TextBody</code> to set as body.
      * @param subtype
@@ -223,7 +223,7 @@ public abstract class AbstractEntity imp
      * Sets the body of this entity and sets the content-type to the specified
      * value. A <code>Header</code> is created if this entity does not already
      * have one.
-     * 
+     *
      * @param body
      *            the body.
      * @param mimeType
@@ -238,7 +238,7 @@ public abstract class AbstractEntity imp
      * Sets the body of this entity and sets the content-type to the specified
      * value. A <code>Header</code> is created if this entity does not already
      * have one.
-     * 
+     *
      * @param body
      *            the body.
      * @param mimeType
@@ -259,49 +259,49 @@ public abstract class AbstractEntity imp
      * Determines the MIME type of this <code>Entity</code>. The MIME type
      * is derived by looking at the parent's Content-Type field if no
      * Content-Type field is set for this <code>Entity</code>.
-     * 
+     *
      * @return the MIME type.
      */
     public String getMimeType() {
-        ContentTypeField child = 
+        ContentTypeField child =
             getContentTypeField();
-        ContentTypeField parent = getParent() != null 
+        ContentTypeField parent = getParent() != null
             ? (ContentTypeField) getParent().getHeader().
                                                 getField(FieldName.CONTENT_TYPE)
             : null;
-        
+
         return calcMimeType(child, parent);
     }
 
     private ContentTypeField getContentTypeField() {
         return (ContentTypeField) getHeader().getField(FieldName.CONTENT_TYPE);
     }
-    
+
     /**
      * Determines the MIME character set encoding of this <code>Entity</code>.
-     * 
+     *
      * @return the MIME character set encoding.
      */
     public String getCharset() {
         return calcCharset((ContentTypeField) getHeader().getField(FieldName.CONTENT_TYPE));
     }
-    
+
     /**
      * Determines the transfer encoding of this <code>Entity</code>.
-     * 
+     *
      * @return the transfer encoding.
      */
     public String getContentTransferEncoding() {
-        ContentTransferEncodingField f = (ContentTransferEncodingField) 
+        ContentTransferEncodingField f = (ContentTransferEncodingField)
                         getHeader().getField(FieldName.CONTENT_TRANSFER_ENCODING);
-        
+
         return calcTransferEncoding(f);
     }
 
     /**
      * Sets the transfer encoding of this <code>Entity</code> to the specified
      * value.
-     * 
+     *
      * @param contentTransferEncoding
      *            transfer encoding to use.
      */
@@ -313,7 +313,7 @@ public abstract class AbstractEntity imp
     /**
      * Return the disposition type of the content disposition of this
      * <code>Entity</code>.
-     * 
+     *
      * @return the disposition type or <code>null</code> if no disposition
      *         type has been set.
      */
@@ -329,7 +329,7 @@ public abstract class AbstractEntity imp
      * Sets the content disposition of this <code>Entity</code> to the
      * specified disposition type. No filename, size or date parameters
      * are included in the content disposition.
-     * 
+     *
      * @param dispositionType
      *            disposition type value (usually <code>inline</code> or
      *            <code>attachment</code>).
@@ -344,7 +344,7 @@ public abstract class AbstractEntity imp
      * Sets the content disposition of this <code>Entity</code> to the
      * specified disposition type and filename. No size or date parameters are
      * included in the content disposition.
-     * 
+     *
      * @param dispositionType
      *            disposition type value (usually <code>inline</code> or
      *            <code>attachment</code>).
@@ -362,7 +362,7 @@ public abstract class AbstractEntity imp
      * Sets the content disposition of this <code>Entity</code> to the
      * specified values. No date parameters are included in the content
      * disposition.
-     * 
+     *
      * @param dispositionType
      *            disposition type value (usually <code>inline</code> or
      *            <code>attachment</code>).
@@ -383,7 +383,7 @@ public abstract class AbstractEntity imp
     /**
      * Sets the content disposition of this <code>Entity</code> to the
      * specified values.
-     * 
+     *
      * @param dispositionType
      *            disposition type value (usually <code>inline</code> or
      *            <code>attachment</code>).
@@ -413,7 +413,7 @@ public abstract class AbstractEntity imp
     /**
      * Returns the filename parameter of the content disposition of this
      * <code>Entity</code>.
-     * 
+     *
      * @return the filename parameter of the content disposition or
      *         <code>null</code> if the filename has not been set.
      */
@@ -424,13 +424,13 @@ public abstract class AbstractEntity imp
 
         return field.getFilename();
     }
-    
+
     /**
      * Sets the filename parameter of the content disposition of this
      * <code>Entity</code> to the specified value. If this entity does not
      * have a content disposition header field a new one with disposition type
      * <code>attachment</code> is created.
-     * 
+     *
      * @param filename
      *            filename parameter value or <code>null</code> if the
      *            parameter should be removed.
@@ -462,20 +462,20 @@ public abstract class AbstractEntity imp
     /**
      * Determines if the MIME type of this <code>Entity</code> matches the
      * given one. MIME types are case-insensitive.
-     * 
+     *
      * @param type the MIME type to match against.
      * @return <code>true</code> on match, <code>false</code> otherwise.
      */
     public boolean isMimeType(String type) {
         return getMimeType().equalsIgnoreCase(type);
     }
-    
+
     /**
      * Determines if the MIME type of this <code>Entity</code> is
      * <code>multipart/*</code>. Since multipart-entities must have
      * a boundary parameter in the <code>Content-Type</code> field this
      * method returns <code>false</code> if no boundary exists.
-     * 
+     *
      * @return <code>true</code> on match, <code>false</code> otherwise.
      */
     public boolean isMultipart() {
@@ -489,10 +489,10 @@ public abstract class AbstractEntity imp
     /**
      * Disposes of the body of this entity. Note that the dispose call does not
      * get forwarded to the parent entity of this Entity.
-     * 
+     *
      * Subclasses that need to free resources should override this method and
      * invoke super.dispose().
-     * 
+     *
      * @see org.apache.james.mime4j.dom.Disposable#dispose()
      */
     public void dispose() {
@@ -504,7 +504,7 @@ public abstract class AbstractEntity imp
     /**
      * Obtains the header of this entity. Creates and sets a new header if this
      * entity's header is currently <code>null</code>.
-     * 
+     *
      * @return the header of this entity; never <code>null</code>.
      */
     Header obtainHeader() {
@@ -516,7 +516,7 @@ public abstract class AbstractEntity imp
 
     /**
      * Obtains the header field with the specified name.
-     * 
+     *
      * @param <F>
      *            concrete field type.
      * @param fieldName



Mime
View raw message