Skip to content

Commit ca8c427

Browse files
committed
Javadoc
1 parent d55b092 commit ca8c427

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

src/main/java/org/apache/commons/codec/binary/Base32.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@
3636
* <p>
3737
* This class is thread-safe.
3838
* </p>
39+
* <p>
40+
* You can configure instances with the {@link Builder}.
41+
* <p>
42+
* <pre>
43+
* Base32 base32 = Base32.builder()
44+
* .setDecodingPolicy(DecodingPolicy.LENIENT) // default is lenient
45+
* .setEncodeTable(customEncodeTable)
46+
* .setLineLength(0) // default is none
47+
* .setLineSeparator('\r', '\n') // default is CR LF
48+
* .setPadding('=') // default is =
49+
* .get()
50+
* </pre>
3951
*
4052
* @see <a href="http://www.ietf.org/rfc/rfc4648.txt">RFC 4648</a>
4153
* @since 1.5

src/main/java/org/apache/commons/codec/binary/Base64.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@
5050
* <p>
5151
* This class is thread-safe.
5252
* </p>
53+
* <p>
54+
* You can configure instances with the {@link Builder}.
55+
* <p>
56+
* <pre>
57+
* Base64 base64 = Base64.builder()
58+
* .setDecodingPolicy(DecodingPolicy.LENIENT) // default is lenient, null resets to default
59+
* .setEncodeTable(customEncodeTable) // default is built in, null resets to default
60+
* .setLineLength(0) // default is none
61+
* .setLineSeparator('\r', '\n') // default is CR LF, null resets to default
62+
* .setPadding('=') // default is =
63+
* .setUrlSafe(false) // default is false
64+
* .get()
65+
* </pre>
5366
*
5467
* @see <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
5568
* @since 1.0

0 commit comments

Comments
 (0)