package ඓ.ῲ.K.ᕣ.㳳;

import android.os.ParcelFileDescriptor;
import android.util.Log;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import ඓ.ῲ.K.ؿ.C0821;
import ඓ.ῲ.K.ᕣ.C1121;
import ඓ.ῲ.K.ᕣ.㳳.AbstractC1033;
import ඓ.ῲ.K.ᕣ.㿎.AbstractC1146;

/* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹  reason: contains not printable characters */
/* compiled from: FileLoader */
public class C1101<Data> implements AbstractC1033<File, Data> {

    /* renamed from: K  reason: contains not printable characters */
    public final AbstractC1108<Data> f4570;

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$ඓ  reason: contains not printable characters */
    /* compiled from: FileLoader */
    public static class C1103 extends C1107<InputStream> {
        public C1103() {
            super(new C1104());
        }

        /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$ඓ$K  reason: contains not printable characters */
        /* compiled from: FileLoader */
        public class C1104 implements AbstractC1108<InputStream> {
            /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public void m2972(InputStream inputStream) throws IOException {
                inputStream.close();
            }

            /* Return type fixed from 'java.lang.Object' to match base method */
            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public InputStream m2971(File file) throws FileNotFoundException {
                return new FileInputStream(file);
            }

            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public Class<InputStream> m2970() {
                return InputStream.class;
            }
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$ῲ  reason: contains not printable characters */
    /* compiled from: FileLoader */
    public static class C1105 extends C1107<ParcelFileDescriptor> {
        public C1105() {
            super(new C1106());
        }

        /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$ῲ$K  reason: contains not printable characters */
        /* compiled from: FileLoader */
        public class C1106 implements AbstractC1108<ParcelFileDescriptor> {
            /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public void m2975(ParcelFileDescriptor parcelFileDescriptor) throws IOException {
                parcelFileDescriptor.close();
            }

            /* Return type fixed from 'java.lang.Object' to match base method */
            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public ParcelFileDescriptor m2974(File file) throws FileNotFoundException {
                return ParcelFileDescriptor.open(file, 268435456);
            }

            @Override // ඓ.ῲ.K.ᕣ.㳳.C1101.AbstractC1108
            /* renamed from: K  reason: contains not printable characters */
            public Class<ParcelFileDescriptor> m2973() {
                return ParcelFileDescriptor.class;
            }
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$K  reason: contains not printable characters */
    /* compiled from: FileLoader */
    public static class C1107<Data> implements AbstractC1091<File, Data> {

        /* renamed from: K  reason: contains not printable characters */
        public final AbstractC1108<Data> f4574;

        public C1107(AbstractC1108<Data> r1) {
            this.f4574 = r1;
        }

        @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1091
        /* renamed from: K  reason: contains not printable characters */
        public final AbstractC1033<File, Data> m2976(C1092 r2) {
            return new C1101(this.f4574);
        }
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$㸾  reason: contains not printable characters */
    /* compiled from: FileLoader */
    public interface AbstractC1108<Data> {
        /* renamed from: K  reason: contains not printable characters */
        Class<Data> m2977();

        /* renamed from: K  reason: contains not printable characters */
        Data m2978(File file) throws FileNotFoundException;

        /* renamed from: K  reason: contains not printable characters */
        void m2979(Data data) throws IOException;
    }

    public C1101(AbstractC1108<Data> r1) {
        this.f4570 = r1;
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, int, int, ඓ.ῲ.K.ᕣ.㸾] */
    @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1033
    /* renamed from: K  reason: contains not printable characters */
    public AbstractC1033.C1034 m2964(File file, int i, int i2, C1121 r5) {
        File file2 = file;
        return new AbstractC1033.C1034(new C0821(file2), new C1102(file2, this.f4570));
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
    @Override // ඓ.ῲ.K.ᕣ.㳳.AbstractC1033
    /* renamed from: K  reason: contains not printable characters */
    public boolean m2965(File file) {
        return true;
    }

    /* renamed from: ඓ.ῲ.K.ᕣ.㳳.㴹$ʬ  reason: contains not printable characters */
    /* compiled from: FileLoader */
    public static final class C1102<Data> implements AbstractC1146<Data> {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final AbstractC1108<Data> f4571;

        /* renamed from: ῲ  reason: contains not printable characters */
        public final File f4572;

        /* renamed from: 㸾  reason: contains not printable characters */
        public Data f4573;

        public C1102(File file, AbstractC1108<Data> r2) {
            this.f4572 = file;
            this.f4571 = r2;
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        public void cancel() {
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: ʬ  reason: contains not printable characters */
        public DataSource m2966() {
            return DataSource.LOCAL;
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m2967() {
            Data data = this.f4573;
            if (data != null) {
                try {
                    this.f4571.m2979((Object) data);
                } catch (IOException unused) {
                }
            }
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: K  reason: contains not printable characters */
        public void m2969(Priority priority, AbstractC1146.AbstractC1147<? super Data> k) {
            try {
                this.f4573 = this.f4571.m2978(this.f4572);
                k.m3069((Object) this.f4573);
            } catch (FileNotFoundException e) {
                if (Log.isLoggable("FileLoader", 3)) {
                    Log.d("FileLoader", "Failed to open file", e);
                }
                k.m3068((Exception) e);
            }
        }

        @Override // ඓ.ῲ.K.ᕣ.㿎.AbstractC1146
        /* renamed from: K  reason: contains not printable characters */
        public Class<Data> m2968() {
            return this.f4571.m2977();
        }
    }
}
