正在查看: BAM Crawford v6.14.1 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BAM Crawford v6.14.1 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.subsplash.thechurchapp.handlers.table;
import android.sax.Element;
import android.sax.EndElementListener;
import android.sax.EndTextElementListener;
import android.sax.RootElement;
import android.util.Log;
import android.util.Xml;
import com.subsplash.thechurchapp.dataObjects.ImageSet;
import com.subsplash.util.h0;
import com.subsplash.util.w;
import java.io.ByteArrayInputStream;
public class a implements com.subsplash.thechurchapp.api.d {
class C0063a implements EndTextElementListener {
final w a;
C0063a(w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.NONE, w.c.IMAGE, h0.o("CarouselContentParser", str));
}
}
class b implements EndTextElementListener {
final w a;
b(w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.DOUBLE, w.c.IMAGE, h0.o("CarouselContentParser", str));
}
}
class c implements EndTextElementListener {
final CarouselContentHandler a;
c(CarouselContentHandler carouselContentHandler) {
this.a = carouselContentHandler;
}
@Override
public void end(String str) {
this.a.body = str;
}
}
class d implements EndElementListener {
final CarouselContentHandler a;
final w b;
d(CarouselContentHandler carouselContentHandler, w wVar) {
this.a = carouselContentHandler;
this.b = wVar;
}
@Override
public void end() {
this.a.images = ImageSet.CreateFromLegacyResourceSet(this.b, w.c.IMAGE);
}
}
@Override
public void parse(String str, com.subsplash.thechurchapp.handlers.common.a aVar) {
CarouselContentHandler carouselContentHandler = (CarouselContentHandler) aVar;
w wVar = new w();
RootElement rootElement = new RootElement("data");
Element child = rootElement.getChild("content");
child.getChild("image").setEndTextElementListener(new C0063a(wVar));
child.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/double/", "image").setEndTextElementListener(new b(wVar));
child.getChild("description").setEndTextElementListener(new c(carouselContentHandler));
child.setEndElementListener(new d(carouselContentHandler, wVar));
try {
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(str.getBytes());
Xml.parse(byteArrayInputStream, Xml.Encoding.UTF_8, rootElement.getContentHandler());
Log.i("CarouselContentParser", "Parsed");
byteArrayInputStream.close();
} catch (Exception e) {
e.printStackTrace();
Log.e("CarouselContentParser", "Error Parsing Photo Detail XML: " + e.toString());
}
}
}