Decodes the specified character sequence, and returns the resulting byte[]. This is the inverse operation to #encode(byte[]). @throws DecodingException if the input is not a valid encoded string according to this encoding.
(CharSequence chars)
| 236 | */ |
| 237 | |
| 238 | final byte[] decodeChecked(CharSequence chars) throws DecodingException { |
| 239 | chars = padding().trimTrailingFrom(chars); |
| 240 | byte[] tmp = new byte[maxDecodedSize(chars.length())]; |
| 241 | int len = decodeTo(tmp, chars); |
| 242 | return extract(tmp, len); |
| 243 | } |
| 244 | |
| 245 | /** |
| 246 | * Returns an {@code InputStream} that decodes base-encoded input from the specified |
no test coverage detected