正在查看: BAM Crawford v6.14.1 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BAM Crawford v6.14.1 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.subsplash.thechurchapp.handlers.detail;
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.Header;
import com.subsplash.thechurchapp.dataObjects.MediaSet;
import com.subsplash.thechurchapp.handlers.common.NavigationHandler;
import com.subsplash.thechurchapp.handlers.notes.NoteHandler;
import com.subsplash.util.w;
import java.net.URL;
import java.util.Iterator;
public class a implements com.subsplash.thechurchapp.api.d {
private String a = null;
private String b = null;
class C0050a implements EndTextElementListener {
final com.subsplash.util.w a;
C0050a(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.DOUBLE, w.c.POSTERIMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class a0 implements EndTextElementListener {
a0() {
}
@Override
public void end(String str) {
a.this.b = str;
}
}
class b implements EndTextElementListener {
final com.subsplash.util.w a;
b(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.IPAD, w.c.POSTERIMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class b0 implements EndTextElementListener {
b0() {
}
@Override
public void end(String str) {
if (a.this.b == null) {
a.this.b = str;
}
}
}
class c implements EndTextElementListener {
final com.subsplash.util.w a;
c(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.IPADDOUBLE, w.c.POSTERIMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class c0 implements EndElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
final MediaDetailHandler b;
c0(com.subsplash.thechurchapp.handlers.common.i iVar, MediaDetailHandler mediaDetailHandler) {
this.a = iVar;
this.b = mediaDetailHandler;
}
@Override
public void end() {
this.a.setNavigationHandler(NavigationHandler.CreateHandler(a.this.a, a.this.b));
this.b.addButtonItem(1, this.a.copy());
this.a.reuse();
a.this.a = null;
a.this.b = null;
}
}
class d implements EndTextElementListener {
final MediaDetailHandler a;
d(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
String m = com.subsplash.util.h0.m("MediaDetailParser", str);
if (m != null) {
this.a.alternativeRows.add(m);
}
}
}
class d0 implements EndTextElementListener {
final MediaDetailHandler a;
d0(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
MediaDetailHandler mediaDetailHandler = this.a;
if (mediaDetailHandler.header == null) {
mediaDetailHandler.header = new Header();
}
this.a.header.title = str;
}
}
class e implements EndTextElementListener {
final MediaSet.MediaItem a;
e(MediaSet.MediaItem mediaItem) {
this.a = mediaItem;
}
@Override
public void end(String str) {
this.a.url = com.subsplash.util.h0.o("MediaDetailParser", str);
}
}
class e0 implements EndTextElementListener {
final MediaDetailHandler a;
e0(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
this.a.title = com.subsplash.util.h0.m("MediaDetailParser", str);
}
}
class f implements EndTextElementListener {
final com.subsplash.util.w a;
f(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.NONE, w.c.ALBUMART, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class f0 implements EndTextElementListener {
final MediaDetailHandler a;
f0(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
this.a.subtitle = com.subsplash.util.h0.m("MediaDetailParser", str);
}
}
class g implements EndTextElementListener {
final com.subsplash.util.w a;
g(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.DOUBLE, w.c.ALBUMART, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class g0 implements EndTextElementListener {
final MediaDetailHandler a;
g0(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
this.a.description = com.subsplash.util.h0.m("MediaDetailParser", str);
}
}
class h implements EndTextElementListener {
final MediaSet.MediaItem a;
h(MediaSet.MediaItem mediaItem) {
this.a = mediaItem;
}
@Override
public void end(String str) {
this.a.duration = com.subsplash.util.h0.k("MediaDetailParser", str);
}
}
class h0 implements EndTextElementListener {
final com.subsplash.util.w a;
h0(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.NONE, w.c.IMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class i implements EndTextElementListener {
final MediaSet.MediaItem a;
i(MediaSet.MediaItem mediaItem) {
this.a = mediaItem;
}
@Override
public void end(String str) {
this.a.sapId = com.subsplash.util.h0.m("MediaDetailParser", str);
}
}
class i0 implements EndTextElementListener {
final com.subsplash.util.w a;
i0(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.DOUBLE, w.c.IMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class j implements EndTextElementListener {
final MediaDetailHandler a;
j(MediaDetailHandler mediaDetailHandler) {
this.a = mediaDetailHandler;
}
@Override
public void end(String str) {
this.a.unresolvedVideoUrl = com.subsplash.util.h0.o("MediaDetailParser", str);
}
}
class j0 implements EndTextElementListener {
final com.subsplash.util.w a;
j0(com.subsplash.util.w wVar) {
this.a = wVar;
}
@Override
public void end(String str) {
this.a.f(w.b.NONE, w.c.POSTERIMAGE, com.subsplash.util.h0.o("MediaDetailParser", str));
}
}
class k implements EndTextElementListener {
final MediaSet.MediaItem a;
k(MediaSet.MediaItem mediaItem) {
this.a = mediaItem;
}
@Override
public void end(String str) {
this.a.url = com.subsplash.util.h0.o("MediaDetailParser", str);
}
}
class l implements EndTextElementListener {
final MediaSet a;
l(MediaSet mediaSet) {
this.a = mediaSet;
}
@Override
public void end(String str) {
this.a.addItem(com.subsplash.util.h0.o("MediaDetailParser", str), MediaSet.MediaFormat.RTSP);
}
}
class m implements EndTextElementListener {
final MediaSet a;
m(MediaSet mediaSet) {
this.a = mediaSet;
}
@Override
public void end(String str) {
this.a.addItem(com.subsplash.util.h0.o("MediaDetailParser", str), MediaSet.MediaFormat.MP4);
}
}
class n implements EndTextElementListener {
final MediaSet a;
n(MediaSet mediaSet) {
this.a = mediaSet;
}
@Override
public void end(String str) {
this.a.addItem(com.subsplash.util.h0.o("MediaDetailParser", str), MediaSet.MediaFormat.M3U8);
}
}
class o implements EndTextElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
o(com.subsplash.thechurchapp.handlers.common.i iVar) {
this.a = iVar;
}
@Override
public void end(String str) {
this.a.setPriorityName(com.subsplash.util.h0.m("MediaDetailParser", str));
}
}
class p implements EndTextElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
p(com.subsplash.thechurchapp.handlers.common.i iVar) {
this.a = iVar;
}
@Override
public void end(String str) {
this.a.setName(com.subsplash.util.h0.m("MediaDetailParser", str));
}
}
class q implements EndTextElementListener {
q() {
}
@Override
public void end(String str) {
a.this.a = str;
}
}
class r implements EndTextElementListener {
r() {
}
@Override
public void end(String str) {
if (a.this.a == null) {
a.this.a = str;
}
}
}
class s implements EndTextElementListener {
s() {
}
@Override
public void end(String str) {
a.this.b = str;
}
}
class t implements EndTextElementListener {
t() {
}
@Override
public void end(String str) {
if (a.this.b == null) {
a.this.b = str;
}
}
}
class u implements EndElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
final MediaDetailHandler b;
u(com.subsplash.thechurchapp.handlers.common.i iVar, MediaDetailHandler mediaDetailHandler) {
this.a = iVar;
this.b = mediaDetailHandler;
}
@Override
public void end() {
this.a.setNavigationHandler(NavigationHandler.CreateHandler(a.this.a, a.this.b));
this.b.addButtonItem(0, this.a.copy());
this.a.reuse();
a.this.a = null;
a.this.b = null;
}
}
class v implements EndTextElementListener {
final MediaSet.MediaItem a;
v(MediaSet.MediaItem mediaItem) {
this.a = mediaItem;
}
@Override
public void end(String str) {
this.a.downloadable = Boolean.parseBoolean(str);
}
}
class w implements EndTextElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
w(com.subsplash.thechurchapp.handlers.common.i iVar) {
this.a = iVar;
}
@Override
public void end(String str) {
this.a.setPriorityName(com.subsplash.util.h0.m("MediaDetailParser", str));
}
}
class x implements EndTextElementListener {
final com.subsplash.thechurchapp.handlers.common.i a;
x(com.subsplash.thechurchapp.handlers.common.i iVar) {
this.a = iVar;
}
@Override
public void end(String str) {
this.a.setName(com.subsplash.util.h0.m("MediaDetailParser", str));
}
}
class y implements EndTextElementListener {
y() {
}
@Override
public void end(String str) {
a.this.a = str;
}
}
class z implements EndTextElementListener {
z() {
}
@Override
public void end(String str) {
if (a.this.a == null) {
a.this.a = str;
}
}
}
@Override
public void parse(String str, com.subsplash.thechurchapp.handlers.common.a aVar) {
MediaSet mediaSet;
MediaDetailHandler mediaDetailHandler = (MediaDetailHandler) aVar;
com.subsplash.thechurchapp.handlers.common.i iVar = new com.subsplash.thechurchapp.handlers.common.i(true);
com.subsplash.thechurchapp.handlers.common.i iVar2 = new com.subsplash.thechurchapp.handlers.common.i(true);
com.subsplash.util.w wVar = new com.subsplash.util.w();
MediaSet mediaSet2 = new MediaSet();
MediaSet.MediaItem CreateMediaItem = mediaSet2.CreateMediaItem();
MediaSet.MediaItem CreateMediaItem2 = mediaSet2.CreateMediaItem();
RootElement rootElement = new RootElement("data");
Element child = rootElement.getChild("header");
Element requireChild = rootElement.requireChild("content");
Element child2 = requireChild.getChild("prebuttons").getChild("button");
Element child3 = requireChild.getChild("postbuttons").getChild("button");
Element child4 = requireChild.getChild("audiomedia").getChild("audiogroup").getChild("audio");
si.b.b(requireChild, mediaDetailHandler.sharingData);
child4.getChild("link").setEndTextElementListener(new k(CreateMediaItem));
child4.getChild("downloadable").setEndTextElementListener(new v(CreateMediaItem));
child.getChild(NoteHandler.JSON_KEY_TITLE).setEndTextElementListener(new d0(mediaDetailHandler));
requireChild.getChild(NoteHandler.JSON_KEY_TITLE).setEndTextElementListener(new e0(mediaDetailHandler));
requireChild.getChild("subtitle").setEndTextElementListener(new f0(mediaDetailHandler));
requireChild.getChild("description").setEndTextElementListener(new g0(mediaDetailHandler));
requireChild.getChild("image").setEndTextElementListener(new h0(wVar));
requireChild.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/double/", "image").setEndTextElementListener(new i0(wVar));
requireChild.getChild("posterimage").setEndTextElementListener(new j0(wVar));
requireChild.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/double/", "posterimage").setEndTextElementListener(new C0050a(wVar));
requireChild.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/ipad/", "posterimage").setEndTextElementListener(new b(wVar));
requireChild.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/ipad_double/", "posterimage").setEndTextElementListener(new c(wVar));
requireChild.getChild("alternativerows").getChild("row").setEndTextElementListener(new d(mediaDetailHandler));
requireChild.getChild("audio").setEndTextElementListener(new e(CreateMediaItem));
requireChild.getChild("albumart").setEndTextElementListener(new f(wVar));
requireChild.getChild("http://dashboard.thechurchapp.org/platform/feeds/schemas/double/", "albumart").setEndTextElementListener(new g(wVar));
requireChild.getChild("duration").setEndTextElementListener(new h(CreateMediaItem));
requireChild.getChild("sapid").setEndTextElementListener(new i(CreateMediaItem2));
requireChild.getChild("video").setEndTextElementListener(new j(mediaDetailHandler));
requireChild.getChild("rtsp").setEndTextElementListener(new l(mediaSet2));
requireChild.getChild("mp4").setEndTextElementListener(new m(mediaSet2));
requireChild.getChild("m3u8").setEndTextElementListener(new n(mediaSet2));
child2.getChild("nameandroid").setEndTextElementListener(new o(iVar));
child2.getChild("name").setEndTextElementListener(new p(iVar));
child2.getChild("handlerandroid").setEndTextElementListener(new q());
MediaSet.MediaItem mediaItem = CreateMediaItem2;
child2.getChild(com.subsplash.thechurchapp.handlers.common.a.JSON_KEY_HANDLER).setEndTextElementListener(new r());
child2.getChild("linkandroid").setEndTextElementListener(new s());
child2.getChild("link").setEndTextElementListener(new t());
child2.setEndElementListener(new u(iVar, mediaDetailHandler));
child3.getChild("nameandroid").setEndTextElementListener(new w(iVar2));
child3.getChild("name").setEndTextElementListener(new x(iVar2));
child3.getChild("handlerandroid").setEndTextElementListener(new y());
child3.getChild(com.subsplash.thechurchapp.handlers.common.a.JSON_KEY_HANDLER).setEndTextElementListener(new z());
child3.getChild("linkandroid").setEndTextElementListener(new a0());
child3.getChild("link").setEndTextElementListener(new b0());
child3.setEndElementListener(new c0(iVar2, mediaDetailHandler));
try {
Xml.parse(str, rootElement.getContentHandler());
if (wVar.b()) {
mediaDetailHandler.imageResourceSet = wVar;
}
URL url = CreateMediaItem.url;
if (url != null) {
CreateMediaItem.downloadable = (!CreateMediaItem.downloadable || com.subsplash.util.e0.i(url.toString()) || url.getProtocol().equals("rtsp")) ? false : true;
CreateMediaItem.ensureFormat(MediaSet.MediaFormat.AUDIO);
mediaSet = mediaSet2;
mediaSet.add(CreateMediaItem);
} else {
mediaSet = mediaSet2;
}
Iterator<MediaSet.MediaItem> it = mediaSet.iterator();
while (it.hasNext()) {
MediaSet.MediaItem mediaItem2 = mediaItem;
it.next().sapId = mediaItem2.sapId;
mediaItem = mediaItem2;
}
if (!mediaSet.isEmpty() || mediaDetailHandler.unresolvedVideoUrl != null) {
mediaDetailHandler.media = mediaSet;
}
Log.i("MediaDetailParser", "Parsed");
} catch (Exception e2) {
throw new RuntimeException(e2);
}
}
}