红果免费短剧 v6.2.3.32版本的 MD5 值为:a6b05492607eab2c8a25f26d2f238ae0

以下内容为反编译后的 c.java 源代码,内容仅作参考


package org.a.a.a;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.Enumeration;
import java.util.Hashtable;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.ext.LexicalHandler;

public class c {

    static Hashtable f114457a;

    private static k f114458b;

    private static h f114459c;
    private static String d;

    static {
        Hashtable hashtable = new Hashtable();
        f114457a = hashtable;
        hashtable.put("--nocdata", Boolean.FALSE);
        f114457a.put("--files", Boolean.FALSE);
        f114457a.put("--reuse", Boolean.FALSE);
        f114457a.put("--nons", Boolean.FALSE);
        f114457a.put("--nobogons", Boolean.FALSE);
        f114457a.put("--any", Boolean.FALSE);
        f114457a.put("--emptybogons", Boolean.FALSE);
        f114457a.put("--norootbogons", Boolean.FALSE);
        f114457a.put("--pyxin", Boolean.FALSE);
        f114457a.put("--lexical", Boolean.FALSE);
        f114457a.put("--pyx", Boolean.FALSE);
        f114457a.put("--html", Boolean.FALSE);
        f114457a.put("--method=", Boolean.FALSE);
        f114457a.put("--doctype-public=", Boolean.FALSE);
        f114457a.put("--doctype-system=", Boolean.FALSE);
        f114457a.put("--output-encoding=", Boolean.FALSE);
        f114457a.put("--omit-xml-declaration", Boolean.FALSE);
        f114457a.put("--encoding=", Boolean.FALSE);
        f114457a.put("--help", Boolean.FALSE);
        f114457a.put("--version", Boolean.FALSE);
        f114457a.put("--nodefaults", Boolean.FALSE);
        f114457a.put("--nocolons", Boolean.FALSE);
        f114457a.put("--norestart", Boolean.FALSE);
        f114457a.put("--ignorable", Boolean.FALSE);
        f114458b = null;
        f114459c = null;
        d = null;
    }

    private static void a() {
        System.err.print("usage: java -jar tagsoup-*.jar ");
        System.err.print(" [ ");
        Enumeration keys = f114457a.keys();
        boolean z = true;
        while (keys.hasMoreElements()) {
            if (!z) {
                System.err.print("| ");
            }
            z = false;
            String str = (String) keys.nextElement();
            System.err.print(str);
            if (str.endsWith("=")) {
                System.err.print("?");
            }
            System.err.print(" ");
        }
        System.err.println("]*");
    }

    private static ContentHandler a(Writer writer) {
        String str;
        String str2;
        String str3;
        if (a(f114457a, "--pyx")) {
            return new j(writer);
        }
        o oVar = new o(writer);
        if (a(f114457a, "--html")) {
            oVar.g("method", "html");
            oVar.g("omit-xml-declaration", "yes");
        }
        if (a(f114457a, "--method=") && (str3 = (String) f114457a.get("--method=")) != null) {
            oVar.g("method", str3);
        }
        if (a(f114457a, "--doctype-public=") && (str2 = (String) f114457a.get("--doctype-public=")) != null) {
            oVar.g("doctype-public", str2);
        }
        if (a(f114457a, "--doctype-system=") && (str = (String) f114457a.get("--doctype-system=")) != null) {
            oVar.g("doctype-system", str);
        }
        if (a(f114457a, "--output-encoding=")) {
            String str4 = (String) f114457a.get("--output-encoding=");
            d = str4;
            if (str4 != null) {
                oVar.g("encoding", str4);
            }
        }
        if (a(f114457a, "--omit-xml-declaration")) {
            oVar.g("omit-xml-declaration", "yes");
        }
        oVar.a(f114459c.f114477a, "");
        return oVar;
    }

    public static void a(String[] strArr) throws IOException, SAXException {
        String str;
        int a2 = a(f114457a, strArr);
        if (a(f114457a, "--help")) {
            a();
            return;
        }
        if (a(f114457a, "--version")) {
            System.err.println("TagSoup version 1.2");
            return;
        }
        if (strArr.length == a2) {
            a("", System.out);
            return;
        }
        if (a(f114457a, "--files")) {
            while (a2 < strArr.length) {
                String str2 = strArr[a2];
                int lastIndexOf = str2.lastIndexOf(46);
                if (lastIndexOf == -1) {
                    str = str2 + ".xhtml";
                } else if (str2.endsWith(".xhtml")) {
                    str = str2 + "_";
                } else {
                    str = str2.substring(0, lastIndexOf) + ".xhtml";
                }
                System.err.println("src: " + str2 + " dst: " + str);
                a(str2, new FileOutputStream(str));
                a2++;
            }
            return;
        }
        while (a2 < strArr.length) {
            System.err.println("src: " + strArr[a2]);
            a(strArr[a2], System.out);
            a2++;
        }
    }

    private static boolean a(Hashtable hashtable, String str) {
        if (Boolean.getBoolean(str) || hashtable.get(str) != Boolean.FALSE) {
            return true;
        }
        return false;
    }

    private static int a(Hashtable hashtable, String[] strArr) {
        int i = 0;
        while (i < strArr.length) {
            String str = strArr[i];
            String str2 = null;
            if (str.charAt(0) != '-') {
                break;
            }
            int indexOf = str.indexOf(61);
            if (indexOf != -1) {
                int i2 = indexOf + 1;
                str2 = str.substring(i2, str.length());
                str = str.substring(0, i2);
            }
            if (hashtable.containsKey(str)) {
                if (str2 == null) {
                    hashtable.put(str, Boolean.TRUE);
                } else {
                    hashtable.put(str, str2);
                }
            } else {
                System.err.print("Unknown option ");
                System.err.println(str);
                System.exit(1);
            }
            i++;
        }
        return i;
    }

    private static void a(String str, OutputStream outputStream) throws IOException, SAXException {
        k kVar;
        OutputStreamWriter outputStreamWriter;
        String str2;
        if (a(f114457a, "--reuse")) {
            if (f114458b == null) {
                f114458b = new k();
            }
            kVar = f114458b;
        } else {
            kVar = new k();
        }
        h hVar = new h();
        f114459c = hVar;
        kVar.setProperty("http://www.ccil.org/~cowan/tagsoup/properties/schema", hVar);
        if (a(f114457a, "--nocdata")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/cdata-elements", false);
        }
        if (a(f114457a, "--nons") || a(f114457a, "--html")) {
            kVar.setFeature("http://xml.org/sax/features/namespaces", false);
        }
        if (a(f114457a, "--nobogons")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/ignore-bogons", true);
        }
        if (a(f114457a, "--any")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/bogons-empty", false);
        } else if (a(f114457a, "--emptybogons")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/bogons-empty", true);
        }
        if (a(f114457a, "--norootbogons")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/root-bogons", false);
        }
        if (a(f114457a, "--nodefaults")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/default-attributes", false);
        }
        if (a(f114457a, "--nocolons")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/translate-colons", true);
        }
        if (a(f114457a, "--norestart")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/restart-elements", false);
        }
        if (a(f114457a, "--ignorable")) {
            kVar.setFeature("http://www.ccil.org/~cowan/tagsoup/features/ignorable-whitespace", true);
        }
        if (a(f114457a, "--pyxin")) {
            kVar.setProperty("http://www.ccil.org/~cowan/tagsoup/properties/scanner", new i());
        }
        if (d == null) {
            outputStreamWriter = new OutputStreamWriter(outputStream);
        } else {
            outputStreamWriter = new OutputStreamWriter(outputStream, d);
        }
        ContentHandler a2 = a(outputStreamWriter);
        kVar.setContentHandler(a2);
        if (a(f114457a, "--lexical") && (a2 instanceof LexicalHandler)) {
            kVar.setProperty("http://xml.org/sax/properties/lexical-handler", a2);
        }
        InputSource inputSource = new InputSource();
        if (str != "") {
            inputSource.setSystemId(str);
        } else {
            inputSource.setByteStream(System.in);
        }
        if (a(f114457a, "--encoding=") && (str2 = (String) f114457a.get("--encoding=")) != null) {
            inputSource.setEncoding(str2);
        }
        kVar.parse(inputSource);
    }
}