红果免费短剧 v6.2.3.32版本的 MD5 值为:a6b05492607eab2c8a25f26d2f238ae0
以下内容为反编译后的 k.java 源代码,内容仅作参考
package org.a.a.a;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import org.xml.sax.ContentHandler;
import org.xml.sax.DTDHandler;
import org.xml.sax.EntityResolver;
import org.xml.sax.ErrorHandler;
import org.xml.sax.InputSource;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.XMLReader;
import org.xml.sax.ext.LexicalHandler;
import org.xml.sax.helpers.DefaultHandler;
public class k extends DefaultHandler implements l, XMLReader, LexicalHandler {
private static char[] M = {'<', '/', '>'};
private static String O = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-'()+,./:=?;!*#@$_%";
private static boolean i = true;
private static boolean j = false;
private static boolean k = false;
private static boolean l = true;
private static boolean m = true;
private static boolean n = false;
private static boolean o = true;
private static boolean p = false;
private static boolean q = true;
private HashMap A;
private d B;
private String C;
private boolean D;
private String E;
private String F;
private String G;
private String H;
private d I;
private d f114472J;
private d K;
private int L;
private boolean N;
private char[] P;
private n f;
private m g;
private b h;
private ContentHandler f114473a = this;
private LexicalHandler f114474b = this;
private DTDHandler f114475c = this;
private ErrorHandler d = this;
private EntityResolver e = this;
private boolean r = i;
private boolean s = j;
private boolean t = k;
private boolean u = l;
private boolean v = m;
private boolean w = n;
private boolean x = o;
private boolean y = p;
private boolean z = q;
@Override
public void comment(char[] cArr, int i2, int i3) throws SAXException {
}
@Override
public void endCDATA() throws SAXException {
}
@Override
public void endDTD() throws SAXException {
}
@Override
public void endEntity(String str) throws SAXException {
}
@Override
public void startCDATA() throws SAXException {
}
@Override
public void startDTD(String str, String str2, String str3) throws SAXException {
}
@Override
public void startEntity(String str) throws SAXException {
}
@Override
public int a() {
return this.L;
}
@Override
public ContentHandler getContentHandler() {
ContentHandler contentHandler = this.f114473a;
if (contentHandler == this) {
return null;
}
return contentHandler;
}
@Override
public DTDHandler getDTDHandler() {
DTDHandler dTDHandler = this.f114475c;
if (dTDHandler == this) {
return null;
}
return dTDHandler;
}
@Override
public EntityResolver getEntityResolver() {
EntityResolver entityResolver = this.e;
if (entityResolver == this) {
return null;
}
return entityResolver;
}
@Override
public ErrorHandler getErrorHandler() {
ErrorHandler errorHandler = this.d;
if (errorHandler == this) {
return null;
}
return errorHandler;
}
private void d() throws SAXException {
d dVar = this.I;
c();
if (this.x && (dVar.f() & 1) != 0) {
dVar.h();
dVar.f114462c = this.f114472J;
this.f114472J = dVar;
}
}
private void b() {
if (this.f == null) {
this.f = new h();
}
if (this.g == null) {
this.g = new g();
}
if (this.h == null) {
this.h = new b() {
@Override
public Reader a(InputStream inputStream) {
return new InputStreamReader(inputStream);
}
};
}
this.I = new d(this.f.a("<root>"), this.v);
this.K = new d(this.f.a("<pcdata>"), this.v);
this.B = null;
this.C = null;
this.H = null;
this.f114472J = null;
this.L = 0;
this.N = true;
this.F = null;
this.E = null;
this.G = null;
}
private void c() throws SAXException {
d dVar = this.I;
if (dVar == null) {
return;
}
String a2 = dVar.a();
String c2 = this.I.c();
String b2 = this.I.b();
String b3 = b(a2);
if (!this.r) {
c2 = "";
b2 = "";
}
this.f114473a.endElement(b2, c2, a2);
if (b(b3, b2)) {
this.f114473a.endPrefixMapping(b3);
}
a aVar = this.I.f114461b;
for (int length = aVar.getLength() - 1; length >= 0; length--) {
String uri = aVar.getURI(length);
String b4 = b(aVar.getQName(length));
if (b(b4, uri)) {
this.f114473a.endPrefixMapping(b4);
}
}
this.I = this.I.f114462c;
}
public k() {
HashMap hashMap = new HashMap();
this.A = hashMap;
hashMap.put("http://xml.org/sax/features/namespaces", a(i));
this.A.put("http://xml.org/sax/features/namespace-prefixes", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/external-general-entities", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/external-parameter-entities", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/is-standalone", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/lexical-handler/parameter-entities", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/resolve-dtd-uris", Boolean.TRUE);
this.A.put("http://xml.org/sax/features/string-interning", Boolean.TRUE);
this.A.put("http://xml.org/sax/features/use-attributes2", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/use-locator2", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/use-entity-resolver2", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/validation", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/xmlns-uris", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/xmlns-uris", Boolean.FALSE);
this.A.put("http://xml.org/sax/features/xml-1.1", Boolean.FALSE);
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/ignore-bogons", a(j));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/bogons-empty", a(k));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/root-bogons", a(l));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/default-attributes", a(m));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/translate-colons", a(n));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/restart-elements", a(o));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/ignorable-whitespace", a(p));
this.A.put("http://www.ccil.org/~cowan/tagsoup/features/cdata-elements", a(q));
this.B = null;
this.C = null;
this.D = false;
this.E = null;
this.F = null;
this.G = null;
this.H = null;
this.I = null;
this.f114472J = null;
this.K = null;
this.L = 0;
this.N = true;
this.P = new char[2000];
}
private static Boolean a(boolean z) {
if (z) {
return Boolean.TRUE;
}
return Boolean.FALSE;
}
@Override
public void setContentHandler(ContentHandler contentHandler) {
if (contentHandler == null) {
contentHandler = this;
}
this.f114473a = contentHandler;
}
@Override
public void setDTDHandler(DTDHandler dTDHandler) {
if (dTDHandler == null) {
dTDHandler = this;
}
this.f114475c = dTDHandler;
}
@Override
public void setEntityResolver(EntityResolver entityResolver) {
if (entityResolver == null) {
entityResolver = this;
}
this.e = entityResolver;
}
@Override
public void setErrorHandler(ErrorHandler errorHandler) {
if (errorHandler == null) {
errorHandler = this;
}
this.d = errorHandler;
}
@Override
public void parse(String str) throws IOException, SAXException {
parse(new InputSource(str));
}
private String b(String str) {
int indexOf = str.indexOf(58);
if (indexOf != -1) {
return str.substring(0, indexOf);
}
return "";
}
private static String c(String str) {
if (str == null) {
return str;
}
int length = str.length();
if (length == 0) {
return str;
}
char charAt = str.charAt(0);
if (charAt == str.charAt(length - 1)) {
if (charAt == '\'' || charAt == '\"') {
return str.substring(1, str.length() - 1);
}
return str;
}
return str;
}
private String e(String str) {
if (str == null) {
return null;
}
int length = str.length();
StringBuffer stringBuffer = new StringBuffer(length);
boolean z = true;
for (int i2 = 0; i2 < length; i2++) {
char charAt = str.charAt(i2);
if (O.indexOf(charAt) != -1) {
stringBuffer.append(charAt);
z = false;
} else if (!z) {
stringBuffer.append(' ');
z = true;
}
}
return stringBuffer.toString().trim();
}
@Override
public boolean getFeature(String str) throws SAXNotRecognizedException, SAXNotSupportedException {
Boolean bool = (Boolean) this.A.get(str);
if (bool != null) {
return bool.booleanValue();
}
throw new SAXNotRecognizedException("Unknown feature " + str);
}
private Reader a(InputSource inputSource) throws SAXException, IOException {
Reader characterStream = inputSource.getCharacterStream();
InputStream byteStream = inputSource.getByteStream();
String encoding = inputSource.getEncoding();
String publicId = inputSource.getPublicId();
String systemId = inputSource.getSystemId();
if (characterStream == null) {
if (byteStream == null) {
byteStream = a(publicId, systemId);
}
if (encoding == null) {
return this.h.a(byteStream);
}
try {
return new InputStreamReader(byteStream, encoding);
} catch (UnsupportedEncodingException unused) {
return new InputStreamReader(byteStream);
}
}
return characterStream;
}
private static String[] d(String str) throws IllegalArgumentException {
String trim = str.trim();
if (trim.length() == 0) {
return new String[0];
}
ArrayList arrayList = new ArrayList();
int length = trim.length();
int i2 = 0;
int i3 = 0;
boolean z = false;
char c2 = 0;
boolean z2 = false;
while (i2 < length) {
char charAt = trim.charAt(i2);
if (!z && charAt == '\'' && c2 != '\\') {
z2 = !z2;
if (i3 >= 0) {
i2++;
c2 = charAt;
}
i3 = i2;
i2++;
c2 = charAt;
} else if (!z2 && charAt == '\"' && c2 != '\\') {
z = !z;
if (i3 >= 0) {
i2++;
c2 = charAt;
}
i3 = i2;
i2++;
c2 = charAt;
} else {
if (!z2 && !z) {
if (Character.isWhitespace(charAt)) {
if (i3 >= 0) {
arrayList.add(trim.substring(i3, i2));
}
i3 = -1;
} else if (i3 < 0) {
if (charAt == ' ') {
}
i3 = i2;
}
}
i2++;
c2 = charAt;
}
}
arrayList.add(trim.substring(i3, i2));
return (String[]) arrayList.toArray(new String[0]);
}
@Override
public Object getProperty(String str) throws SAXNotRecognizedException, SAXNotSupportedException {
if (str.equals("http://xml.org/sax/properties/lexical-handler")) {
LexicalHandler lexicalHandler = this.f114474b;
if (lexicalHandler == this) {
return null;
}
return lexicalHandler;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/scanner")) {
return this.g;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/schema")) {
return this.f;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/auto-detector")) {
return this.h;
}
throw new SAXNotRecognizedException("Unknown property " + str);
}
@Override
public void parse(InputSource inputSource) throws IOException, SAXException {
b();
Reader a2 = a(inputSource);
this.f114473a.startDocument();
this.g.a(inputSource.getPublicId(), inputSource.getSystemId());
m mVar = this.g;
if (mVar instanceof Locator) {
this.f114473a.setDocumentLocator((Locator) mVar);
}
if (!this.f.f114477a.equals("")) {
this.f114473a.startPrefixMapping(this.f.f114478b, this.f.f114477a);
}
this.g.a(a2, this);
}
private String a(String str) {
int length = str.length();
char[] cArr = new char[length];
int i2 = 0;
int i3 = -1;
for (int i4 = 0; i4 < length; i4++) {
char charAt = str.charAt(i4);
int i5 = i2 + 1;
cArr[i2] = charAt;
if (charAt == '&' && i3 == -1) {
i2 = i5;
i3 = i2;
} else if (i3 != -1 && !Character.isLetter(charAt) && !Character.isDigit(charAt) && charAt != '#') {
if (charAt == ';') {
int r = r(cArr, i3, (i5 - i3) - 1);
if (r > 65535) {
int i6 = r - 65536;
cArr[i3 - 1] = (char) ((i6 >> 10) + 55296);
cArr[i3] = (char) ((i6 & 1023) + 56320);
i3++;
} else if (r != 0) {
cArr[i3 - 1] = (char) r;
} else {
i3 = i5;
}
i2 = i3;
} else {
i2 = i5;
}
i3 = -1;
} else {
i2 = i5;
}
}
return new String(cArr, 0, i2);
}
private void b(d dVar) throws SAXException {
String a2 = dVar.a();
String c2 = dVar.c();
String b2 = dVar.b();
String b3 = b(a2);
dVar.i();
if (!this.r) {
c2 = "";
b2 = "";
}
if (this.N && c2.equalsIgnoreCase(this.G)) {
try {
this.e.resolveEntity(this.E, this.F);
} catch (IOException unused) {
}
}
if (b(b3, b2)) {
this.f114473a.startPrefixMapping(b3, b2);
}
a aVar = dVar.f114461b;
int length = aVar.getLength();
for (int i2 = 0; i2 < length; i2++) {
String uri = aVar.getURI(i2);
String b4 = b(aVar.getQName(i2));
if (b(b4, uri)) {
this.f114473a.startPrefixMapping(b4, uri);
}
}
this.f114473a.startElement(b2, c2, a2, dVar.f114461b);
dVar.f114462c = this.I;
this.I = dVar;
this.N = false;
if (this.z && (dVar.f() & 2) != 0) {
this.g.a();
}
}
private void c(d dVar) throws SAXException {
d dVar2;
e g;
while (true) {
dVar2 = this.I;
while (dVar2 != null && !dVar2.a(dVar)) {
dVar2 = dVar2.f114462c;
}
if (dVar2 == null && (g = dVar.g()) != null) {
d dVar3 = new d(g, this.v);
dVar3.f114462c = dVar;
dVar = dVar3;
}
}
if (dVar2 == null) {
return;
}
while (true) {
d dVar4 = this.I;
if (dVar4 == dVar2 || dVar4 == null || dVar4.f114462c == null || this.I.f114462c.f114462c == null) {
break;
} else {
d();
}
}
while (dVar != null) {
d dVar5 = dVar.f114462c;
if (!dVar.a().equals("<pcdata>")) {
b(dVar);
}
a(dVar5);
dVar = dVar5;
}
this.B = null;
}
private void a(d dVar) throws SAXException {
while (true) {
d dVar2 = this.f114472J;
if (dVar2 != null && this.I.a(dVar2)) {
if (dVar == null || this.f114472J.a(dVar)) {
d dVar3 = this.f114472J.f114462c;
b(this.f114472J);
this.f114472J = dVar3;
} else {
return;
}
} else {
return;
}
}
}
private InputStream a(String str, String str2) throws IOException, SAXException {
return new URL(new URL("file", "", System.getProperty("user.dir") + "/."), str2).openConnection().getInputStream();
}
private boolean b(String str, String str2) {
if (!str.equals("") && !str2.equals("") && !str2.equals(this.f.f114477a)) {
return true;
}
return false;
}
@Override
public void setProperty(String str, Object obj) throws SAXNotRecognizedException, SAXNotSupportedException {
if (str.equals("http://xml.org/sax/properties/lexical-handler")) {
if (obj == null) {
this.f114474b = this;
return;
} else {
if (obj instanceof LexicalHandler) {
this.f114474b = (LexicalHandler) obj;
return;
}
throw new SAXNotSupportedException("Your lexical handler is not a LexicalHandler");
}
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/scanner")) {
if (obj instanceof m) {
this.g = (m) obj;
return;
}
throw new SAXNotSupportedException("Your scanner is not a Scanner");
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/schema")) {
if (obj instanceof n) {
this.f = (n) obj;
return;
}
throw new SAXNotSupportedException("Your schema is not a Schema");
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/properties/auto-detector")) {
if (obj instanceof b) {
this.h = (b) obj;
return;
}
throw new SAXNotSupportedException("Your auto-detector is not an AutoDetector");
}
throw new SAXNotRecognizedException("Unknown property " + str);
}
@Override
public void setFeature(String str, boolean z) throws SAXNotRecognizedException, SAXNotSupportedException {
if (((Boolean) this.A.get(str)) != null) {
if (z) {
this.A.put(str, Boolean.TRUE);
} else {
this.A.put(str, Boolean.FALSE);
}
if (str.equals("http://xml.org/sax/features/namespaces")) {
this.r = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/ignore-bogons")) {
this.s = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/bogons-empty")) {
this.t = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/root-bogons")) {
this.u = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/default-attributes")) {
this.v = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/translate-colons")) {
this.w = z;
return;
}
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/restart-elements")) {
this.x = z;
return;
} else if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/ignorable-whitespace")) {
this.y = z;
return;
} else {
if (str.equals("http://www.ccil.org/~cowan/tagsoup/features/cdata-elements")) {
this.z = z;
return;
}
return;
}
}
throw new SAXNotRecognizedException("Unknown feature " + str);
}
@Override
public void d(char[] cArr, int i2, int i3) throws SAXException {
this.f114474b.comment(cArr, i2, i3);
}
@Override
public void e(char[] cArr, int i2, int i3) throws SAXException {
this.L = r(cArr, i2, i3);
}
@Override
public void a(char[] cArr, int i2, int i3) throws SAXException {
String str;
d dVar = this.B;
if (dVar != null && (str = this.C) != null) {
dVar.a(str, null, str);
this.C = null;
}
}
@Override
public void g(char[] cArr, int i2, int i3) throws SAXException {
if (p(cArr, i2, i3)) {
return;
}
q(cArr, i2, i3);
}
@Override
public void j(char[] cArr, int i2, int i3) throws SAXException {
this.f114474b.startCDATA();
k(cArr, i2, i3);
this.f114474b.endCDATA();
}
@Override
public void o(char[] cArr, int i2, int i3) throws SAXException {
d dVar = this.B;
if (dVar == null) {
return;
}
c(dVar);
q(cArr, i2, i3);
}
@Override
public void c(char[] cArr, int i2, int i3) throws SAXException {
if (this.B != null && this.C != null) {
this.B.a(this.C, null, a(new String(cArr, i2, i3)));
this.C = null;
}
}
@Override
public void l(char[] cArr, int i2, int i3) throws SAXException {
if (this.B != null) {
return;
}
this.H = s(cArr, i2, i3).replace(':', '_');
}
@Override
public void n(char[] cArr, int i2, int i3) throws SAXException {
d dVar = this.B;
if (dVar == null) {
return;
}
c(dVar);
if (this.I.d() == 0) {
q(cArr, i2, i3);
}
}
@Override
public void f(char[] cArr, int i2, int i3) throws SAXException {
if (this.N) {
c(this.K);
}
while (this.I.f114462c != null) {
c();
}
if (!this.f.f114477a.equals("")) {
this.f114473a.endPrefixMapping(this.f.f114478b);
}
this.f114473a.endDocument();
}
@Override
public void k(char[] cArr, int i2, int i3) throws SAXException {
if (i3 == 0) {
return;
}
boolean z = true;
for (int i4 = 0; i4 < i3; i4++) {
if (!Character.isWhitespace(cArr[i2 + i4])) {
z = false;
}
}
if (z && !this.I.a(this.K)) {
if (this.y) {
this.f114473a.ignorableWhitespace(cArr, i2, i3);
}
} else {
c(this.K);
this.f114473a.characters(cArr, i2, i3);
}
}
@Override
public void m(char[] cArr, int i2, int i3) throws SAXException {
String str;
if (this.B != null || (str = this.H) == null || "xml".equalsIgnoreCase(str)) {
return;
}
if (i3 > 0 && cArr[i3 - 1] == '?') {
i3--;
}
this.f114473a.processingInstruction(this.H, new String(cArr, i2, i3));
this.H = null;
}
private int r(char[] cArr, int i2, int i3) {
if (i3 < 1) {
return 0;
}
if (cArr[i2] == '#') {
if (i3 > 1) {
int i4 = i2 + 1;
if (cArr[i4] == 'x' || cArr[i4] == 'X') {
try {
return Integer.parseInt(new String(cArr, i2 + 2, i3 - 2), 16);
} catch (NumberFormatException unused) {
return 0;
}
}
}
try {
return Integer.parseInt(new String(cArr, i2 + 1, i3 - 1), 10);
} catch (NumberFormatException unused2) {
return 0;
}
}
return this.f.b(new String(cArr, i2, i3));
}
private String s(char[] cArr, int i2, int i3) {
StringBuffer stringBuffer = new StringBuffer(i3 + 2);
boolean z = true;
boolean z2 = false;
while (true) {
int i4 = i3 - 1;
char c2 = '_';
if (i3 <= 0) {
break;
}
char c3 = cArr[i2];
if (!Character.isLetter(c3) && c3 != '_') {
if (!Character.isDigit(c3) && c3 != '-' && c3 != '.') {
if (c3 == ':' && !z2) {
if (z) {
stringBuffer.append('_');
}
if (!this.w) {
c2 = c3;
}
stringBuffer.append(c2);
z = true;
z2 = true;
}
i2++;
i3 = i4;
} else {
if (z) {
stringBuffer.append('_');
}
stringBuffer.append(c3);
}
} else {
stringBuffer.append(c3);
}
z = false;
i2++;
i3 = i4;
}
int length = stringBuffer.length();
if (length == 0 || stringBuffer.charAt(length - 1) == ':') {
stringBuffer.append('_');
}
return stringBuffer.toString().intern();
}
@Override
public void i(char[] cArr, int i2, int i3) throws SAXException {
String s;
int i4;
if (this.B != null || (s = s(cArr, i2, i3)) == null) {
return;
}
e a2 = this.f.a(s);
if (a2 == null) {
if (this.s) {
return;
}
int i5 = -1;
if (this.t) {
i4 = 0;
} else {
i4 = -1;
}
if (!this.u) {
i5 = Integer.MAX_VALUE;
}
this.f.a(s, i4, i5, 0);
if (!this.u) {
n nVar = this.f;
nVar.a(s, nVar.f114479c.f114463a);
}
a2 = this.f.a(s);
}
this.B = new d(a2, this.v);
}
public boolean p(char[] cArr, int i2, int i3) throws SAXException {
boolean z;
String a2 = this.I.a();
if (this.z && (this.I.f() & 2) != 0) {
if (i3 == a2.length()) {
z = true;
} else {
z = false;
}
if (z) {
int i4 = 0;
while (true) {
if (i4 >= i3) {
break;
}
if (Character.toLowerCase(cArr[i2 + i4]) != Character.toLowerCase(a2.charAt(i4))) {
z = false;
break;
}
i4++;
}
}
if (!z) {
this.f114473a.characters(M, 0, 2);
this.f114473a.characters(cArr, i2, i3);
this.f114473a.characters(M, 2, 1);
this.g.a();
return true;
}
}
return false;
}
public void q(char[] cArr, int i2, int i3) throws SAXException {
String a2;
this.B = null;
if (i3 != 0) {
e a3 = this.f.a(s(cArr, i2, i3));
if (a3 == null) {
return;
} else {
a2 = a3.f114463a;
}
} else {
a2 = this.I.a();
}
boolean z = false;
d dVar = this.I;
while (dVar != null && !dVar.a().equals(a2)) {
if ((dVar.f() & 4) != 0) {
z = true;
}
dVar = dVar.f114462c;
}
if (dVar != null && dVar.f114462c != null && dVar.f114462c.f114462c != null) {
if (z) {
dVar.j();
} else {
while (this.I != dVar) {
d();
}
c();
}
while (this.I.d) {
c();
}
a((d) null);
}
}
@Override
public void h(char[] cArr, int i2, int i3) throws SAXException {
String str;
String str2;
String[] d = d(new String(cArr, i2, i3));
String str3 = null;
if (d.length > 0 && "DOCTYPE".equalsIgnoreCase(d[0])) {
if (this.D) {
return;
}
this.D = true;
if (d.length > 1) {
str2 = d[1];
if (d.length > 3 && "SYSTEM".equals(d[2])) {
str = d[3];
} else if (d.length > 3 && "PUBLIC".equals(d[2])) {
str3 = d[3];
if (d.length > 4) {
str = d[4];
} else {
str = "";
}
} else {
str = null;
}
String c2 = c(str3);
String c3 = c(str);
if (str2 == null) {
String e = e(c2);
this.f114474b.startDTD(str2, e, c3);
this.f114474b.endDTD();
this.G = str2;
this.E = e;
m mVar = this.g;
if (mVar instanceof Locator) {
this.F = ((Locator) mVar).getSystemId();
try {
this.F = new URL(new URL(this.F), c3).toString();
return;
} catch (Exception unused) {
return;
}
}
return;
}
return;
}
}
str = null;
str2 = null;
String c22 = c(str3);
String c32 = c(str);
if (str2 == null) {
}
}
@Override
public void b(char[] cArr, int i2, int i3) throws SAXException {
if (this.B == null) {
return;
}
this.C = s(cArr, i2, i3).toLowerCase(Locale.ROOT);
}
}