Skip to content

Commit eabb909

Browse files
author
Julius Davies
committed
CODEC-99 - Oops, I forgot to update the Javadoc. Thanks, Sebb, for pointing that out!
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1063096 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5223a63 commit eabb909

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,12 +648,15 @@ public static byte[] encodeBase64(byte[] binaryData) {
648648
}
649649

650650
/**
651-
* Encodes binary data using the base64 algorithm into 76 character blocks separated by CRLF.
651+
* Encodes binary data using the base64 algorithm but does not chunk the output.
652652
*
653+
* NOTE: We changed the behaviour of this method from multi-line chunking (commons-codec-1.4) to
654+
* single-line non-chunking (commons-codec-1.5).
655+
*
653656
* @param binaryData
654657
* binary data to encode
655658
* @return String containing Base64 characters.
656-
* @since 1.4
659+
* @since 1.4 (NOTE: 1.4 chunked the output, whereas 1.5 does not).
657660
*/
658661
public static String encodeBase64String(byte[] binaryData) {
659662
return StringUtils.newStringUtf8(encodeBase64(binaryData, false));

0 commit comments

Comments
 (0)