MCPcopy
hub / github.com/libgdx/libgdx / decodeString

Method decodeString

gdx/src/com/badlogic/gdx/utils/Base64Coder.java:195–197  ·  view source on GitHub ↗

Decodes a string from Base64 format. No blanks or line breaks are allowed within the Base64 encoded input data. @param s A Base64 String to be decoded. @return A String containing the decoded data. @throws IllegalArgumentException If the input is not valid Base64 encoded data.

(String s)

Source from the content-addressed store, hash-verified

193 * @return A String containing the decoded data.
194 * @throws IllegalArgumentException If the input is not valid Base64 encoded data. */
195 public static String decodeString (String s) {
196 return decodeString(s, false);
197 }
198
199 public static String decodeString (String s, boolean useUrlSafeEncoding) {
200 return new String(decode(s.toCharArray(), useUrlSafeEncoding ? urlsafeMap.decodingMap : regularMap.decodingMap));

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
toCharArrayMethod · 0.80

Tested by

no test coverage detected