From 1b59135b4a74c33daab9ac72e0ebbbad1ee0fa93 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 24 Nov 2010 14:53:24 +0000 Subject: [PATCH] javadoc, and comment out a test method --- core/java/src/net/i2p/data/Base64.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/src/net/i2p/data/Base64.java b/core/java/src/net/i2p/data/Base64.java index b5e03b03c7..fe730af6b4 100644 --- a/core/java/src/net/i2p/data/Base64.java +++ b/core/java/src/net/i2p/data/Base64.java @@ -80,7 +80,9 @@ public class Base64 { } /** + * Decodes data from Base64 notation. * @param s Base 64 encoded string using the I2P alphabet A-Z, a-z, 0-9, -, ~ + * @return the decoded data, null on error */ public static byte[] decode(String s) { return safeDecode(s, false); @@ -234,6 +236,7 @@ public class Base64 { System.out.println("or : Base64 test"); } +/******* private static void test() { String orig = "you smell"; String encoded = Base64.encode(orig.getBytes()); @@ -255,6 +258,7 @@ public class Base64 { else throw new RuntimeException("D(E([all bytes])) != [all bytes]!!!"); } +*******/ /* ******** E N C O D I N G M E T H O D S ******** */ -- GitLab