导航菜单

页面标题

页面副标题

Tarjeta Transporte v3.0.29 - fz1.java 源代码

正在查看: Tarjeta Transporte v3.0.29 应用的 fz1.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.sgcr;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.ProcessingInstruction;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

public abstract class fz1 {

    public static final Object f8722if = new Object();

    public static DocumentBuilderFactory f8721for = m8540if();

    public static Document m8536case(Object obj, fv0 fv0Var) {
        return obj instanceof InputStream ? m8539goto((InputStream) obj, fv0Var) : obj instanceof byte[] ? m8537else(new ab((byte[]) obj), fv0Var) : m8542this((String) obj, fv0Var);
    }

    public static Document m8537else(ab abVar, fv0 fv0Var) {
        try {
            return m8543try(new InputSource(abVar.m5430else()));
        } catch (bz1 e) {
            if (e.m6196if() != 201 && e.m6196if() != 204) {
                throw e;
            }
            if (fv0Var.m8506break()) {
                abVar = xg0.m18287if(abVar);
            }
            if (!fv0Var.m8507catch()) {
                return m8543try(new InputSource(abVar.m5430else()));
            }
            try {
                return m8543try(new InputSource(new k30(new InputStreamReader(abVar.m5430else(), abVar.m5432goto()))));
            } catch (UnsupportedEncodingException unused) {
                throw new bz1("Unsupported Encoding", 9, e);
            }
        }
    }

    public static Object[] m8538for(Node node, boolean z, Object[] objArr) {
        NodeList childNodes = node.getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++) {
            Node item = childNodes.item(i);
            if (7 == item.getNodeType()) {
                ProcessingInstruction processingInstruction = (ProcessingInstruction) item;
                if ("xpacket".equals(processingInstruction.getTarget())) {
                    if (objArr != null) {
                        objArr[2] = processingInstruction.getData();
                    }
                }
            }
            if (3 != item.getNodeType() && 7 != item.getNodeType()) {
                String namespaceURI = item.getNamespaceURI();
                String localName = item.getLocalName();
                if (("xmpmeta".equals(localName) || "xapmeta".equals(localName)) && "adobe:ns:meta/".equals(namespaceURI)) {
                    return m8538for(item, false, objArr);
                }
                if (!z && "RDF".equals(localName) && "http://www.w3.org/1999/02/22-rdf-syntax-ns#".equals(namespaceURI)) {
                    if (objArr != null) {
                        objArr[0] = item;
                        objArr[1] = f8722if;
                    }
                    return objArr;
                }
                Object[] m8538for = m8538for(item, z, objArr);
                if (m8538for != null) {
                    return m8538for;
                }
            }
        }
        return null;
    }

    public static Document m8539goto(InputStream inputStream, fv0 fv0Var) {
        if (!fv0Var.m8506break() && !fv0Var.m8507catch()) {
            return m8543try(new InputSource(inputStream));
        }
        try {
            return m8537else(new ab(inputStream), fv0Var);
        } catch (IOException e) {
            throw new bz1("Error reading the XML-file", 204, e);
        }
    }

    public static DocumentBuilderFactory m8540if() {
        DocumentBuilderFactory newInstance = DocumentBuilderFactory.newInstance();
        newInstance.setNamespaceAware(true);
        newInstance.setIgnoringComments(true);
        try {
            newInstance.setFeature("http://javax.xml.XMLConstants/feature/secure-processing", true);
            newInstance.setFeature("http://xml.org/sax/features/external-general-entities", false);
            newInstance.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false);
            newInstance.setXIncludeAware(false);
            newInstance.setExpandEntityReferences(false);
        } catch (Exception unused) {
        }
        return newInstance;
    }

    public static cz1 m8541new(Object obj, fv0 fv0Var) {
        bv0.m6177new(obj);
        if (fv0Var == null) {
            fv0Var = new fv0();
        }
        Object[] m8538for = m8538for(m8536case(obj, fv0Var), fv0Var.m8509const(), new Object[3]);
        if (m8538for == null || m8538for[1] != f8722if) {
            return new ez1();
        }
        ez1 m9297break = gv0.m9297break((Node) m8538for[0]);
        m9297break.m7960catch((String) m8538for[2]);
        return !fv0Var.m8508class() ? iz1.m10584this(m9297break, fv0Var) : m9297break;
    }

    public static Document m8542this(String str, fv0 fv0Var) {
        try {
            return m8543try(new InputSource(new StringReader(str)));
        } catch (bz1 e) {
            if (e.m6196if() == 201 && fv0Var.m8507catch()) {
                return m8543try(new InputSource(new k30(new StringReader(str))));
            }
            throw e;
        }
    }

    public static Document m8543try(InputSource inputSource) {
        try {
            DocumentBuilder newDocumentBuilder = f8721for.newDocumentBuilder();
            newDocumentBuilder.setErrorHandler(null);
            return newDocumentBuilder.parse(inputSource);
        } catch (IOException e) {
            throw new bz1("Error reading the XML-file", 204, e);
        } catch (ParserConfigurationException e2) {
            throw new bz1("XML Parser not correctly configured", 0, e2);
        } catch (SAXException e3) {
            throw new bz1("XML parsing failure", 201, e3);
        }
    }
}