MCPcopy Create free account
hub / github.com/FongMi/TV / base64

Method base64

app/src/main/java/com/fongmi/android/tv/api/Decoder.java:72–76  ·  view source on GitHub ↗
(String data)

Source from the content-addressed store, hash-verified

70 }
71
72 private static String base64(String data) {
73 String extract = extract(data);
74 if (extract.isEmpty()) return data;
75 return new String(Base64.decode(extract, Base64.DEFAULT));
76 }
77
78 private static String extract(String data) {
79 Matcher matcher = Pattern.compile("[A-Za-z0-9]{8}\\*\\*").matcher(data);

Callers 1

verifyMethod · 0.95

Calls 3

extractMethod · 0.95
decodeMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected