what-the-bank/sources/com/airbnb/lottie/parser/MergePathsParser.java

35 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.airbnb.lottie.parser;
import com.airbnb.lottie.model.content.MergePaths;
import com.airbnb.lottie.parser.moshi.JsonReader;
import java.io.IOException;
/* loaded from: classes.dex */
class MergePathsParser {
private static final JsonReader.Options NAMES = JsonReader.Options.of("nm", "mm", "hd");
private MergePathsParser() {
}
/* JADX INFO: Access modifiers changed from: package-private */
public static MergePaths parse(JsonReader jsonReader) throws IOException {
String str = null;
boolean z = false;
MergePaths.MergePathsMode mergePathsMode = null;
while (jsonReader.hasNext()) {
int selectName = jsonReader.selectName(NAMES);
if (selectName == 0) {
str = jsonReader.nextString();
} else if (selectName == 1) {
mergePathsMode = MergePaths.MergePathsMode.forId(jsonReader.nextInt());
} else if (selectName == 2) {
z = jsonReader.nextBoolean();
} else {
jsonReader.skipName();
jsonReader.skipValue();
}
}
return new MergePaths(str, mergePathsMode, z);
}
}