Decodes the specified character sequence, and returns the resulting byte[]. This is the inverse operation to #encode(byte[]). @throws IllegalArgumentException if the input is not a valid encoded string according to this encoding.
(CharSequence chars)
| 220 | |
| 221 | |
| 222 | public final byte[] decode(CharSequence chars) { |
| 223 | try { |
| 224 | return decodeChecked(chars); |
| 225 | } catch (DecodingException badInput) { |
| 226 | throw new IllegalArgumentException(badInput); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | /** |
| 231 | * Decodes the specified character sequence, and returns the resulting {@code byte[]}. This is the |