Skip to content

Commit 60cff9d

Browse files
author
Niall Kegan Pemberton
committed
Add missing @SInCE 1.4 tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@801105 13f79535-47bb-0310-9956-ffa450edef68
1 parent 25ad9f8 commit 60cff9d

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ public static byte[] encodeBase64(byte[] binaryData) {
644644
* @param binaryData
645645
* binary data to encode
646646
* @return String containing Base64 characters.
647+
* @since 1.4
647648
*/
648649
public static String encodeBase64String(byte[] binaryData) {
649650
return StringUtils.newStringUtf8(encodeBase64(binaryData, true));
@@ -712,6 +713,7 @@ public Object decode(Object pObject) throws DecoderException {
712713
* @param pArray
713714
* A String containing Base64 character data
714715
* @return a byte array containing binary data
716+
* @since 1.4
715717
*/
716718
public byte[] decode(String pArray) {
717719
return decode(StringUtils.getBytesUtf8(pArray));
@@ -818,6 +820,7 @@ public static byte[] encodeBase64(byte[] binaryData, boolean isChunked, boolean
818820
* @param base64String
819821
* String containing Base64 data
820822
* @return Array containing decoded data.
823+
* @since 1.4
821824
*/
822825
public static byte[] decodeBase64(String base64String) {
823826
return new Base64().decode(base64String);
@@ -905,6 +908,7 @@ public Object encode(Object pObject) throws EncoderException {
905908
* @param pArray
906909
* a byte array containing binary data
907910
* @return A String containing only Base64 character data
911+
* @since 1.4
908912
*/
909913
public String encodeToString(byte[] pArray) {
910914
return StringUtils.newStringUtf8(encode(pArray));

src/java/org/apache/commons/codec/digest/DigestUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public static byte[] sha(byte[] data) {
245245
* @return SHA-1 digest
246246
* @throws IOException
247247
* On error reading from the stream
248+
* @since 1.4
248249
*/
249250
public static byte[] sha(InputStream data) throws IOException {
250251
return digest(getShaDigest(), data);
@@ -562,6 +563,7 @@ public static String shaHex(byte[] data) {
562563
* @return SHA-1 digest as a hex string
563564
* @throws IOException
564565
* On error reading from the stream
566+
* @since 1.4
565567
*/
566568
public static String shaHex(InputStream data) throws IOException {
567569
return new String(Hex.encodeHex(sha(data)));

0 commit comments

Comments
 (0)