james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwiederk...@apache.org
Subject svn commit: r880687 - /james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
Date Mon, 16 Nov 2009 09:27:30 GMT
Author: mwiederkehr
Date: Mon Nov 16 09:27:19 2009
New Revision: 880687

URL: http://svn.apache.org/viewvc?rev=880687&view=rev
Log:
order of methods: placed getters before setters

Modified:
    james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java

Modified: james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java?rev=880687&r1=880686&r2=880687&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
(original)
+++ james/mime4j/trunk/core/src/main/java/org/apache/james/mime4j/parser/MimeEntityConfig.java
Mon Nov 16 09:27:19 2009
@@ -52,6 +52,16 @@
     }
     
     /**
+     * Returns the value of the strict parsing mode
+     * @see #setStrictParsing(boolean)
+     * 
+     * @return value of the strict parsing mode
+     */
+    public boolean isStrictParsing() {
+        return this.strictParsing;
+    }
+
+    /**
      * Defines whether minor violations of the MIME specification should be 
      * tolerated or should result in a {@link MimeException}. If this parameter
      * is set to <code>true</code>, a strict interpretation of the MIME 
@@ -64,16 +74,16 @@
         this.strictParsing = strictParsing;
     }
 
-    /**
-     * Returns the value of the strict parsing mode
-     * @see #setStrictParsing(boolean)
+    /** 
+     * Returns the maximum line length limit
+     * @see #setMaxLineLen(int)
      * 
-     * @return value of the strict parsing mode
+     * @return value of the the maximum line length limit
      */
-    public boolean isStrictParsing() {
-        return this.strictParsing;
+    public int getMaxLineLen() {
+        return this.maxLineLen;
     }
-    
+
     /**
      * Sets the maximum line length limit. Parsing of a MIME entity will be terminated 
      * with a {@link MimeException} if a line is encountered that exceeds the maximum
@@ -87,13 +97,13 @@
     }
     
     /** 
-     * Returns the maximum line length limit
-     * @see #setMaxLineLen(int)
+     * Returns the maximum header limit
+     * @see #setMaxHeaderCount(int)
      * 
-     * @return value of the the maximum line length limit
+     * @return value of the the maximum header limit
      */
-    public int getMaxLineLen() {
-        return this.maxLineLen;
+    public int getMaxHeaderCount() {
+        return this.maxHeaderCount;
     }
 
     /**
@@ -109,13 +119,13 @@
     }
 
     /** 
-     * Returns the maximum header limit
-     * @see #setMaxHeaderCount(int)
+     * Returns the maximum content length limit
+     * @see #setMaxContentLen(long)
      * 
-     * @return value of the the maximum header limit
+     * @return value of the the maximum content length limit
      */
-    public int getMaxHeaderCount() {
-        return this.maxHeaderCount;
+    public long getMaxContentLen() {
+        return maxContentLen;
     }
 
     /**
@@ -130,14 +140,13 @@
         this.maxContentLen = maxContentLen;
     }
 
-    /** 
-     * Returns the maximum content length limit
-     * @see #setMaxContentLen(long)
+    /**
+     * Returns the value of the line number counting mode.
      * 
-     * @return value of the the maximum content length limit
+     * @return value of the line number counting mode.
      */
-    public long getMaxContentLen() {
-        return maxContentLen;
+    public boolean isCountLineNumbers() {
+        return countLineNumbers;
     }
 
     /**
@@ -152,15 +161,6 @@
     }
 
     /**
-     * Returns the value of the line number counting mode.
-     * 
-     * @return value of the line number counting mode.
-     */
-    public boolean isCountLineNumbers() {
-        return countLineNumbers;
-    }
-
-    /**
      * Returns the value of the default content type. 
      * When not null, indicates that the parsing should be headless.
      * 



Mime
View raw message