public class Base64Decoder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
decode(byte[] bytes)
Decode an array of bytes that is base64 encoded.
|
static java.lang.String |
decode(java.lang.String s,
java.nio.charset.Charset charset)
Decode a string in base64, using charset as the string encoding.
|
static java.lang.String |
decode(java.lang.String s,
java.lang.String charsetName)
Decode a string in base64, using charsetName as the string encoding.
|
public static byte[] decode(byte[] bytes) throws java.io.IOException
bytes
- The array of bytes to decode.java.io.IOException
- Upon decoding error.public static java.lang.String decode(java.lang.String s, java.lang.String charsetName) throws java.io.IOException
s
- The string to encode.charsetName
- The encoding name.java.io.IOException
- Upon encoding error.public static java.lang.String decode(java.lang.String s, java.nio.charset.Charset charset) throws java.io.IOException
s
- The string to encode.charset
- The encoding.java.io.IOException
- Upon encoding error.Copyright © 2021 Dassault Systèmes, All Rights Reserved.