mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-19 12:23:19 +01:00
34 lines
991 B
Java
34 lines
991 B
Java
package org.json;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes11.dex */
|
|
public class HTTPTokener extends JSONTokener {
|
|
public HTTPTokener(String str) {
|
|
super(str);
|
|
}
|
|
|
|
public String nextToken() throws JSONException {
|
|
char next;
|
|
StringBuilder sb = new StringBuilder();
|
|
do {
|
|
next = next();
|
|
} while (Character.isWhitespace(next));
|
|
if (next != '\"' && next != '\'') {
|
|
while (next != 0 && !Character.isWhitespace(next)) {
|
|
sb.append(next);
|
|
next = next();
|
|
}
|
|
return sb.toString();
|
|
}
|
|
while (true) {
|
|
char next2 = next();
|
|
if (next2 < ' ') {
|
|
throw syntaxError("Unterminated string.");
|
|
}
|
|
if (next2 == next) {
|
|
return sb.toString();
|
|
}
|
|
sb.append(next2);
|
|
}
|
|
}
|
|
}
|