This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/master by this push:
     new ca8c427f Javadoc
ca8c427f is described below

commit ca8c427f3d0b671af266aba076d4ab4ce066a26f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Apr 17 22:34:07 2024 -0400

    Javadoc
---
 src/main/java/org/apache/commons/codec/binary/Base32.java | 12 ++++++++++++
 src/main/java/org/apache/commons/codec/binary/Base64.java | 13 +++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/src/main/java/org/apache/commons/codec/binary/Base32.java 
b/src/main/java/org/apache/commons/codec/binary/Base32.java
index 61ca1140..ea03aacd 100644
--- a/src/main/java/org/apache/commons/codec/binary/Base32.java
+++ b/src/main/java/org/apache/commons/codec/binary/Base32.java
@@ -36,6 +36,18 @@ import org.apache.commons.codec.CodecPolicy;
  * <p>
  * This class is thread-safe.
  * </p>
+ * <p>
+ * You can configure instances with the {@link Builder}.
+ * <p>
+ * <pre>
+ * Base32 base32 = Base32.builder()
+ *   .setDecodingPolicy(DecodingPolicy.LENIENT) // default is lenient
+ *   .setEncodeTable(customEncodeTable)
+ *   .setLineLength(0)                          // default is none
+ *   .setLineSeparator('\r', '\n')              // default is CR LF
+ *   .setPadding('=')                           // default is =
+ *   .get()
+ * </pre>
  *
  * @see <a href="http://www.ietf.org/rfc/rfc4648.txt";>RFC 4648</a>
  * @since 1.5
diff --git a/src/main/java/org/apache/commons/codec/binary/Base64.java 
b/src/main/java/org/apache/commons/codec/binary/Base64.java
index 57a65053..1654b40d 100644
--- a/src/main/java/org/apache/commons/codec/binary/Base64.java
+++ b/src/main/java/org/apache/commons/codec/binary/Base64.java
@@ -50,6 +50,19 @@ import org.apache.commons.codec.CodecPolicy;
  * <p>
  * This class is thread-safe.
  * </p>
+ * <p>
+ * You can configure instances with the {@link Builder}.
+ * <p>
+ * <pre>
+ * Base64 base64 = Base64.builder()
+ *   .setDecodingPolicy(DecodingPolicy.LENIENT) // default is lenient, null 
resets to default
+ *   .setEncodeTable(customEncodeTable)         // default is built in, null 
resets to default
+ *   .setLineLength(0)                          // default is none
+ *   .setLineSeparator('\r', '\n')              // default is CR LF, null 
resets to default
+ *   .setPadding('=')                           // default is =
+ *   .setUrlSafe(false)                         // default is false
+ *   .get()
+ * </pre>
  *
  * @see <a href="http://www.ietf.org/rfc/rfc2045.txt";>RFC 2045</a>
  * @since 1.0

Reply via email to