导航菜单

页面标题

页面副标题

moonshot.企业版 v8.14.46 - C7279.java 源代码

正在查看: moonshot.企业版 v8.14.46 应用的 C7279.java JAVA 源代码文件

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


package kp1AiJpjqJHu1Tcnj96z.Bu9YQKH1SoMrhmpeBGto.zSFvmU2XOpXZrEfUxlHp.IRnPlw4EC2IclzeuBbCK;

import android.annotation.SuppressLint;
import com.luck.picture.lib.config.FileSizeUnit;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.security.DigestInputStream;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import kp1AiJpjqJHu1Tcnj96z.l9DIbgbSEsWEHUgGqnur.zSFvmU2XOpXZrEfUxlHp.C9475;

public class C7279 {

    private static final char[] f27398 = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};

    public static boolean m28874(String str) {
        return m28953(m28911(str));
    }

    public static String m28875(File file, String str) {
        BufferedReader bufferedReader;
        BufferedReader bufferedReader2 = null;
        if (file == null) {
            return null;
        }
        try {
            StringBuilder sb = new StringBuilder();
            bufferedReader = m28960(str) ? new BufferedReader(new InputStreamReader(new FileInputStream(file))) : new BufferedReader(new InputStreamReader(new FileInputStream(file), str));
            while (true) {
                try {
                    try {
                        String readLine = bufferedReader.readLine();
                        if (readLine == null) {
                            String sb2 = sb.delete(sb.length() - 2, sb.length()).toString();
                            C7269.m28799(bufferedReader);
                            return sb2;
                        }
                        sb.append(readLine);
                        sb.append("\r\n");
                    } catch (IOException e) {
                        e = e;
                        e.printStackTrace();
                        C7269.m28799(bufferedReader);
                        return null;
                    }
                } catch (Throwable th) {
                    th = th;
                    bufferedReader2 = bufferedReader;
                    C7269.m28799(bufferedReader2);
                    throw th;
                }
            }
        } catch (IOException e2) {
            e = e2;
            bufferedReader = null;
        } catch (Throwable th2) {
            th = th2;
            C7269.m28799(bufferedReader2);
            throw th;
        }
    }

    public static boolean m28876(String str) {
        return m28935(m28911(str));
    }

    public static byte[] m28877(File file) {
        if (file == null) {
            return null;
        }
        try {
            return m28945(new FileInputStream(file));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            return null;
        }
    }

    private static boolean m28878(String str, String str2, boolean z) {
        return m28942(m28911(str), m28911(str2), z);
    }

    public static String m28879(File file) {
        if (file == null) {
            return null;
        }
        return m28902(file.getPath());
    }

    public static List<String> m28880(File file, String str) {
        return m28961(file, 0, Integer.MAX_VALUE, str);
    }

    public static boolean m28881(String str) {
        return m28908(m28911(str));
    }

    private static boolean m28882(String str, String str2, boolean z) {
        return m28931(m28911(str), m28911(str2), z);
    }

    public static long m28883(String str) {
        return m28915(m28911(str));
    }

    public static List<File> m28884(String str, FilenameFilter filenameFilter, boolean z) {
        return m28932(m28911(str), filenameFilter, z);
    }

    public static String m28885(File file) {
        BufferedInputStream bufferedInputStream;
        int i = 0;
        BufferedInputStream bufferedInputStream2 = null;
        try {
            try {
                bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
            } catch (IOException e) {
                e = e;
            }
        } catch (Throwable th) {
            th = th;
        }
        try {
            int read = (bufferedInputStream.read() << 8) + bufferedInputStream.read();
            C7269.m28799(bufferedInputStream);
            i = read;
        } catch (IOException e2) {
            e = e2;
            bufferedInputStream2 = bufferedInputStream;
            e.printStackTrace();
            C7269.m28799(bufferedInputStream2);
            if (i == 61371) {
            }
        } catch (Throwable th2) {
            th = th2;
            bufferedInputStream2 = bufferedInputStream;
            C7269.m28799(bufferedInputStream2);
            throw th;
        }
        return i == 61371 ? i != 65279 ? i != 65534 ? C9475.f32976 : "Unicode" : C9475.f32975 : "UTF-8";
    }

    public static boolean m28886(String str, String str2) {
        return m28923(m28911(str), m28911(str2));
    }

    public static boolean m28887(File file) {
        if (file == null) {
            return false;
        }
        if (file.exists()) {
            return file.isFile();
        }
        if (!m28957(file.getParentFile())) {
            return false;
        }
        try {
            return file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        }
    }

    public static List<String> m28888(String str, int i, int i2, String str2) {
        return m28961(m28911(str), i, i2, str2);
    }

    public static InputStream m28889(String str) {
        File file = new File(str);
        if (!file.exists()) {
            return null;
        }
        try {
            BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
            try {
                bufferedInputStream.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return bufferedInputStream;
        } catch (FileNotFoundException e2) {
            e2.printStackTrace();
            return null;
        }
    }

    public static String m28890(String str) {
        return m28949(m28911(str));
    }

    public static boolean m28891(File file, File file2) {
        return m28931(file, file2, false);
    }

    public static String m28892(String str) {
        return m28964(m28960(str) ? null : new File(str));
    }

    public static String m28893(String str) {
        int lastIndexOf;
        return (m28960(str) || (lastIndexOf = str.lastIndexOf(File.separator)) == -1) ? str : str.substring(lastIndexOf + 1);
    }

    @SuppressLint({"DefaultLocale"})
    private static String m28894(long j) {
        if (j < 0) {
            return "shouldn't be less than zero!";
        }
        if (j < 1024) {
            double d = j;
            Double.isNaN(d);
            return String.format("%.3fB", Double.valueOf(d + 5.0E-4d));
        }
        if (j < 1048576) {
            double d2 = j;
            Double.isNaN(d2);
            return String.format("%.3fKB", Double.valueOf((d2 / 1024.0d) + 5.0E-4d));
        }
        if (j < FileSizeUnit.GB) {
            double d3 = j;
            Double.isNaN(d3);
            return String.format("%.3fMB", Double.valueOf((d3 / 1048576.0d) + 5.0E-4d));
        }
        double d4 = j;
        Double.isNaN(d4);
        return String.format("%.3fGB", Double.valueOf((d4 / 1.073741824E9d) + 5.0E-4d));
    }

    public static boolean m28895(String str, String str2) {
        return m28941(m28911(str), m28911(str2));
    }

    public static boolean m28896(File file, String str) {
        if (file == null || !file.exists() || m28960(str)) {
            return false;
        }
        if (str.equals(file.getName())) {
            return true;
        }
        File file2 = new File(file.getParent() + File.separator + str);
        return !file2.exists() && file.renameTo(file2);
    }

    public static boolean m28897(String str, String str2) {
        return m28910(m28911(str), m28911(str2));
    }

    public static List<File> m28898(String str, String str2, boolean z) {
        return m28925(m28911(str), str2, z);
    }

    public static long m28899(String str) {
        return m28907(m28911(str));
    }

    public static String m28900(String str) {
        if (m28960(str)) {
            return str;
        }
        int lastIndexOf = str.lastIndexOf(File.separator);
        return lastIndexOf == -1 ? "" : str.substring(0, lastIndexOf + 1);
    }

    public static boolean m28901(String str) {
        return m28957(m28911(str));
    }

    public static String m28902(String str) {
        if (m28960(str)) {
            return str;
        }
        int lastIndexOf = str.lastIndexOf(46);
        int lastIndexOf2 = str.lastIndexOf(File.separator);
        return lastIndexOf2 == -1 ? lastIndexOf == -1 ? str : str.substring(0, lastIndexOf) : (lastIndexOf == -1 || lastIndexOf2 > lastIndexOf) ? str.substring(lastIndexOf2 + 1) : str.substring(lastIndexOf2 + 1, lastIndexOf);
    }

    public static String m28903(File file) {
        if (file == null) {
            return null;
        }
        return m28893(file.getPath());
    }

    public static String m28904(String str, String str2) {
        return m28875(m28911(str), str2);
    }

    public static boolean m28905(File file) {
        return file != null && file.exists();
    }

    public static int m28906(File file) {
        int i;
        BufferedInputStream bufferedInputStream;
        BufferedInputStream bufferedInputStream2 = null;
        try {
            try {
                bufferedInputStream = new BufferedInputStream(new FileInputStream(file));
            } catch (IOException e) {
                e = e;
            }
            try {
                try {
                    byte[] bArr = new byte[1024];
                    i = 1;
                    while (true) {
                        try {
                            int read = bufferedInputStream.read(bArr, 0, 1024);
                            if (read == -1) {
                                break;
                            }
                            for (int i2 = 0; i2 < read; i2++) {
                                if (bArr[i2] == 10) {
                                    i++;
                                }
                            }
                        } catch (IOException e2) {
                            e = e2;
                            bufferedInputStream2 = bufferedInputStream;
                            e.printStackTrace();
                            C7269.m28799(bufferedInputStream2);
                            return i;
                        }
                    }
                    C7269.m28799(bufferedInputStream);
                } catch (Throwable th) {
                    th = th;
                    bufferedInputStream2 = bufferedInputStream;
                    C7269.m28799(bufferedInputStream2);
                    throw th;
                }
            } catch (IOException e3) {
                e = e3;
                bufferedInputStream2 = bufferedInputStream;
                i = 1;
                e.printStackTrace();
                C7269.m28799(bufferedInputStream2);
                return i;
            }
            return i;
        } catch (Throwable th2) {
            th = th2;
        }
    }

    public static long m28907(File file) {
        if (!m28935(file)) {
            return -1L;
        }
        long j = 0;
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                j += file2.isDirectory() ? m28907(file2) : file2.length();
            }
        }
        return j;
    }

    public static boolean m28908(File file) {
        if (file == null) {
            return false;
        }
        if (!file.exists()) {
            return true;
        }
        if (!file.isDirectory()) {
            return false;
        }
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (file2.isFile()) {
                    if (!m28922(file2)) {
                        return false;
                    }
                } else if (file2.isDirectory() && !m28951(file2)) {
                    return false;
                }
            }
        }
        return true;
    }

    public static boolean m28909(String str) {
        return m28887(m28911(str));
    }

    public static boolean m28910(File file, File file2) {
        return m28942(file, file2, true);
    }

    public static File m28911(String str) {
        if (m28960(str)) {
            return null;
        }
        return new File(str);
    }

    public static String m28912(String str) {
        return m28940(m28911(str));
    }

    public static boolean m28913(String str) {
        return m28951(m28911(str));
    }

    public static String m28914(File file) {
        if (file == null) {
            return null;
        }
        return m28920(file.getPath());
    }

    public static long m28915(File file) {
        if (m28953(file)) {
            return file.length();
        }
        return -1L;
    }

    public static List<File> m28916(String str, String str2) {
        return m28919(m28911(str), str2);
    }

    public static boolean m28917(File file) {
        if (file == null) {
            return false;
        }
        if ((file.exists() && file.isFile() && !file.delete()) || !m28957(file.getParentFile())) {
            return false;
        }
        try {
            return file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        }
    }

    public static long m28918(String str) {
        return m28950(m28911(str));
    }

    public static List<File> m28919(File file, String str) {
        if (file == null || !m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (file2.getName().toUpperCase().equals(str.toUpperCase())) {
                    arrayList.add(file2);
                }
                if (file2.isDirectory()) {
                    arrayList.addAll(m28919(file2, str));
                }
            }
        }
        return arrayList;
    }

    public static String m28920(String str) {
        if (m28960(str)) {
            return str;
        }
        int lastIndexOf = str.lastIndexOf(46);
        return (lastIndexOf == -1 || str.lastIndexOf(File.separator) >= lastIndexOf) ? "" : str.substring(lastIndexOf + 1);
    }

    public static boolean m28921(String str) {
        return m28922(m28911(str));
    }

    public static boolean m28922(File file) {
        return file != null && (!file.exists() || (file.isFile() && file.delete()));
    }

    public static boolean m28923(File file, File file2) {
        return m28931(file, file2, true);
    }

    public static boolean m28924(String str, InputStream inputStream, boolean z) {
        return m28937(m28911(str), inputStream, z);
    }

    public static List<File> m28925(File file, String str, boolean z) {
        if (z) {
            return m28934(file, str);
        }
        if (file == null || !m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (file2.getName().toUpperCase().endsWith(str.toUpperCase())) {
                    arrayList.add(file2);
                }
            }
        }
        return arrayList;
    }

    private static ByteArrayOutputStream m28926(InputStream inputStream) {
        if (inputStream == null) {
            return null;
        }
        try {
            try {
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                byte[] bArr = new byte[1024];
                while (true) {
                    int read = inputStream.read(bArr, 0, 1024);
                    if (read == -1) {
                        C7269.m28799(inputStream);
                        return byteArrayOutputStream;
                    }
                    byteArrayOutputStream.write(bArr, 0, read);
                }
            } catch (IOException e) {
                e.printStackTrace();
                C7269.m28799(inputStream);
                return null;
            }
        } catch (Throwable th) {
            C7269.m28799(inputStream);
            throw th;
        }
    }

    public static boolean m28927(String str, String str2, boolean z) {
        return m28956(m28911(str), str2, z);
    }

    public static int m28928(String str) {
        return m28906(m28911(str));
    }

    public static boolean m28929(String str, String str2) {
        return m28891(m28911(str), m28911(str2));
    }

    public static List<File> m28930(File file) {
        List<File> m28930;
        if (!m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                arrayList.add(file2);
                if (file2.isDirectory() && (m28930 = m28930(file2)) != null) {
                    arrayList.addAll(m28930);
                }
            }
        }
        return arrayList;
    }

    private static boolean m28931(File file, File file2, boolean z) {
        if (file == null || file2 == null) {
            return false;
        }
        StringBuilder sb = new StringBuilder();
        sb.append(file.getPath());
        String str = File.separator;
        sb.append(str);
        String sb2 = sb.toString();
        String str2 = file2.getPath() + str;
        if (str2.contains(sb2) || !file.exists() || !file.isDirectory() || !m28957(file2)) {
            return false;
        }
        for (File file3 : file.listFiles()) {
            File file4 = new File(str2 + file3.getName());
            if (file3.isFile()) {
                if (!m28942(file3, file4, z)) {
                    return false;
                }
            } else if (file3.isDirectory() && !m28931(file3, file4, z)) {
                return false;
            }
        }
        return !z || m28951(file);
    }

    public static List<File> m28932(File file, FilenameFilter filenameFilter, boolean z) {
        if (z) {
            return m28959(file, filenameFilter);
        }
        if (file == null || !m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (filenameFilter.accept(file2.getParentFile(), file2.getName())) {
                    arrayList.add(file2);
                }
            }
        }
        return arrayList;
    }

    private static String m28933(byte[] bArr) {
        int length;
        if (bArr == null || (length = bArr.length) <= 0) {
            return null;
        }
        char[] cArr = new char[length << 1];
        int i = 0;
        for (int i2 = 0; i2 < length; i2++) {
            int i3 = i + 1;
            char[] cArr2 = f27398;
            cArr[i] = cArr2[(bArr[i2] >>> 4) & 15];
            i = i3 + 1;
            cArr[i3] = cArr2[bArr[i2] & 15];
        }
        return new String(cArr);
    }

    public static List<File> m28934(File file, String str) {
        if (file == null || !m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (file2.getName().toUpperCase().endsWith(str.toUpperCase())) {
                    arrayList.add(file2);
                }
                if (file2.isDirectory()) {
                    arrayList.addAll(m28934(file2, str));
                }
            }
        }
        return arrayList;
    }

    public static boolean m28935(File file) {
        return m28905(file) && file.isDirectory();
    }

    public static List<File> m28936(File file, boolean z) {
        if (!m28935(file)) {
            return null;
        }
        if (z) {
            return m28930(file);
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            Collections.addAll(arrayList, listFiles);
        }
        return arrayList;
    }

    public static boolean m28937(File file, InputStream inputStream, boolean z) {
        BufferedOutputStream bufferedOutputStream;
        if (file == null || inputStream == null || !m28887(file)) {
            return false;
        }
        BufferedOutputStream bufferedOutputStream2 = null;
        try {
            try {
                bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(file, z));
            } catch (Throwable th) {
                th = th;
            }
        } catch (IOException e) {
            e = e;
        }
        try {
            byte[] bArr = new byte[1024];
            while (true) {
                int read = inputStream.read(bArr, 0, 1024);
                if (read == -1) {
                    C7269.m28799(inputStream, bufferedOutputStream);
                    return true;
                }
                bufferedOutputStream.write(bArr, 0, read);
            }
        } catch (IOException e2) {
            e = e2;
            bufferedOutputStream2 = bufferedOutputStream;
            e.printStackTrace();
            C7269.m28799(inputStream, bufferedOutputStream2);
            return false;
        } catch (Throwable th2) {
            th = th2;
            bufferedOutputStream2 = bufferedOutputStream;
            C7269.m28799(inputStream, bufferedOutputStream2);
            throw th;
        }
    }

    public static boolean m28938(String str) {
        return m28917(m28911(str));
    }

    public static byte[] m28939(String str) {
        return m28877(m28911(str));
    }

    public static String m28940(File file) {
        long m28907 = m28907(file);
        return m28907 == -1 ? "" : m28894(m28907);
    }

    public static boolean m28941(File file, File file2) {
        return m28942(file, file2, false);
    }

    private static boolean m28942(File file, File file2, boolean z) {
        if (file != null && file2 != null && file.exists() && file.isFile()) {
            if ((file2.exists() && file2.isFile()) || !m28957(file2.getParentFile())) {
                return false;
            }
            try {
                if (!m28937(file2, new FileInputStream(file), false)) {
                    return false;
                }
                if (z) {
                    if (!m28922(file)) {
                        return false;
                    }
                }
                return true;
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }
        return false;
    }

    public static byte[] m28943(String str) {
        return m28952(m28960(str) ? null : new File(str));
    }

    public static List<File> m28944(String str, FilenameFilter filenameFilter) {
        return m28959(m28911(str), filenameFilter);
    }

    private static byte[] m28945(InputStream inputStream) {
        if (inputStream == null) {
            return null;
        }
        return m28926(inputStream).toByteArray();
    }

    public static boolean m28946(String str) {
        return m28905(m28911(str));
    }

    public static List<File> m28947(String str) {
        return m28930(m28911(str));
    }

    public static boolean m28948(String str, String str2) {
        return m28896(m28911(str), str2);
    }

    public static String m28949(File file) {
        long m28915 = m28915(file);
        return m28915 == -1 ? "" : m28894(m28915);
    }

    public static long m28950(File file) {
        if (file == null) {
            return -1L;
        }
        return file.lastModified();
    }

    public static boolean m28951(File file) {
        if (file == null) {
            return false;
        }
        if (!file.exists()) {
            return true;
        }
        if (!file.isDirectory()) {
            return false;
        }
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (file2.isFile()) {
                    if (!m28922(file2)) {
                        return false;
                    }
                } else if (file2.isDirectory() && !m28951(file2)) {
                    return false;
                }
            }
        }
        return file.delete();
    }

    public static byte[] m28952(File file) {
        DigestInputStream digestInputStream;
        Closeable closeable;
        Closeable closeable2 = null;
        if (file == null) {
            return null;
        }
        try {
            try {
                digestInputStream = new DigestInputStream(new FileInputStream(file), MessageDigest.getInstance("MD5"));
                try {
                    while (digestInputStream.read(new byte[262144]) > 0) {
                    }
                    byte[] digest = digestInputStream.getMessageDigest().digest();
                    C7269.m28799(digestInputStream);
                    return digest;
                } catch (IOException e) {
                    e = e;
                    e.printStackTrace();
                    C7269.m28799(digestInputStream);
                    return null;
                } catch (NoSuchAlgorithmException e2) {
                    e = e2;
                    e.printStackTrace();
                    C7269.m28799(digestInputStream);
                    return null;
                }
            } catch (Throwable th) {
                th = th;
                closeable2 = closeable;
                C7269.m28799(closeable2);
                throw th;
            }
        } catch (IOException e3) {
            e = e3;
            digestInputStream = null;
            e.printStackTrace();
            C7269.m28799(digestInputStream);
            return null;
        } catch (NoSuchAlgorithmException e4) {
            e = e4;
            digestInputStream = null;
            e.printStackTrace();
            C7269.m28799(digestInputStream);
            return null;
        } catch (Throwable th2) {
            th = th2;
            C7269.m28799(closeable2);
            throw th;
        }
    }

    public static boolean m28953(File file) {
        return m28905(file) && file.isFile();
    }

    public static String m28954(String str) {
        return m28885(m28911(str));
    }

    public static List<File> m28955(String str, boolean z) {
        return m28936(m28911(str), z);
    }

    public static boolean m28956(File file, String str, boolean z) {
        BufferedWriter bufferedWriter;
        if (file == null || str == null || !m28887(file)) {
            return false;
        }
        BufferedWriter bufferedWriter2 = null;
        try {
            try {
                bufferedWriter = new BufferedWriter(new FileWriter(file, z));
            } catch (Throwable th) {
                th = th;
            }
        } catch (IOException e) {
            e = e;
        }
        try {
            bufferedWriter.write(str);
            C7269.m28799(bufferedWriter);
            return true;
        } catch (IOException e2) {
            e = e2;
            bufferedWriter2 = bufferedWriter;
            e.printStackTrace();
            C7269.m28799(bufferedWriter2);
            return false;
        } catch (Throwable th2) {
            th = th2;
            bufferedWriter2 = bufferedWriter;
            C7269.m28799(bufferedWriter2);
            throw th;
        }
    }

    public static boolean m28957(File file) {
        return file != null && (!file.exists() ? !file.mkdirs() : !file.isDirectory());
    }

    public static String m28958(File file) {
        if (file == null) {
            return null;
        }
        return m28900(file.getPath());
    }

    public static List<File> m28959(File file, FilenameFilter filenameFilter) {
        if (file == null || !m28935(file)) {
            return null;
        }
        ArrayList arrayList = new ArrayList();
        File[] listFiles = file.listFiles();
        if (listFiles != null && listFiles.length != 0) {
            for (File file2 : listFiles) {
                if (filenameFilter.accept(file2.getParentFile(), file2.getName())) {
                    arrayList.add(file2);
                }
                if (file2.isDirectory()) {
                    arrayList.addAll(m28959(file2, filenameFilter));
                }
            }
        }
        return arrayList;
    }

    public static boolean m28960(String str) {
        if (str == null) {
            return true;
        }
        int length = str.length();
        for (int i = 0; i < length; i++) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }

    public static List<String> m28961(File file, int i, int i2, String str) {
        BufferedReader bufferedReader;
        String str2 = null;
        if (file == null || i > i2) {
            return null;
        }
        try {
            try {
                ArrayList arrayList = new ArrayList();
                bufferedReader = m28960(str) ? new BufferedReader(new FileReader(file)) : new BufferedReader(new InputStreamReader(new FileInputStream(file), str));
                int i3 = 1;
                while (true) {
                    try {
                        String readLine = bufferedReader.readLine();
                        if (readLine == null || i3 > i2) {
                            break;
                        }
                        if (i <= i3 && i3 <= i2) {
                            arrayList.add(readLine);
                        }
                        i3++;
                    } catch (IOException e) {
                        e = e;
                        e.printStackTrace();
                        C7269.m28799(bufferedReader);
                        return null;
                    }
                }
                C7269.m28799(bufferedReader);
                return arrayList;
            } catch (Throwable th) {
                th = th;
                str2 = str;
                C7269.m28799(str2);
                throw th;
            }
        } catch (IOException e2) {
            e = e2;
            bufferedReader = null;
        } catch (Throwable th2) {
            th = th2;
            C7269.m28799(str2);
            throw th;
        }
    }

    public static List<File> m28962(String str, String str2) {
        return m28934(m28911(str), str2);
    }

    public static List<String> m28963(String str, String str2) {
        return m28880(m28911(str), str2);
    }

    public static String m28964(File file) {
        return m28933(m28952(file));
    }
}