Updates from review
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
db4f2928ba
commit
67d12a0839
|
@ -255,13 +255,14 @@ public class B64Code
|
|||
* <p>Unlike {@link #decode(char[])}, extra whitespace is ignored.
|
||||
* @param encoded String to decode.
|
||||
* @param charEncoding String representing the character encoding
|
||||
* used to map the decoded bytes into a String.
|
||||
* used to map the decoded bytes into a String. If null
|
||||
* the platforms default charset is used.
|
||||
* @return String decoded byte array.
|
||||
* @throws UnsupportedCharsetException if the encoding is not supported
|
||||
* @throws IllegalArgumentException if the input is not a valid
|
||||
* B64 encoding.
|
||||
*/
|
||||
@SuppressWarnings("DefaultCharset")
|
||||
@SuppressWarnings("DefaultCharset")
|
||||
public static String decode(String encoded,String charEncoding)
|
||||
{
|
||||
byte[] decoded=decode(encoded);
|
||||
|
@ -275,12 +276,13 @@ public class B64Code
|
|||
* <p>Unlike {@link #decode(char[])}, extra whitespace is ignored.
|
||||
* @param encoded String to decode.
|
||||
* @param charEncoding Character encoding
|
||||
* used to map the decoded bytes into a String.
|
||||
* used to map the decoded bytes into a String. If null
|
||||
* the platforms default charset is used.
|
||||
* @return String decoded byte array.
|
||||
* @throws IllegalArgumentException if the input is not a valid
|
||||
* B64 encoding.
|
||||
*/
|
||||
@SuppressWarnings("DefaultCharset")
|
||||
@SuppressWarnings("DefaultCharset")
|
||||
public static String decode(String encoded, Charset charEncoding)
|
||||
{
|
||||
byte[] decoded=decode(encoded);
|
||||
|
|
Loading…
Reference in New Issue