commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1456850 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
Date Fri, 15 Mar 2013 09:53:09 GMT
Author: simonetripodi
Date: Fri Mar 15 09:53:09 2013
New Revision: 1456850

URL: http://svn.apache.org/r1456850
Log:
checkstyle: Missing a Javadoc comment

Modified:
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java?rev=1456850&r1=1456849&r2=1456850&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/util/mime/Base64Decoder.java
Fri Mar 15 09:53:09 2013
@@ -24,6 +24,9 @@ import java.io.OutputStream;
  */
 final class Base64Decoder {
 
+    /**
+     * set up the encoding table.
+     */
     private static final byte[] ENCODING_TABLE = {
         (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G',
         (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N',
@@ -39,9 +42,12 @@ final class Base64Decoder {
         (byte) '+', (byte) '/'
     };
 
+    /**
+     * The padding byte.
+     */
     private static final byte PADDING = (byte) '=';
 
-    /*
+    /**
      * set up the decoding table.
      */
     private static final byte[] DECODING_TABLE = new byte[256];
@@ -52,10 +58,19 @@ final class Base64Decoder {
         }
     }
 
+    /**
+     * Hidden constructor, this class must not be instantiated.
+     */
     private Base64Decoder() {
         // do nothing
     }
 
+    /**
+     * Checks if the input char must be skipped from the decode.
+     *
+     * @param c the char has to be checked.
+     * @return true, if the input char has to be checked, false otherwise.
+     */
     private static boolean ignore(
         char    c) {
         return (c == '\n' || c == '\r' || c == '\t' || c == ' ');



Mime
View raw message