曹妃甸核酸检测平台.apk(点击下载) / g.java


package com.bumptech.glide.load.b;

import androidx.annotation.NonNull;
import com.bumptech.glide.Priority;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.a.d;
import com.bumptech.glide.load.b.u;
import com.bumptech.glide.load.f;
import java.io.IOException;
import java.io.InputStream;

public final class g<Model, Data> implements u<Model, Data> {

    /* renamed from: a  reason: collision with root package name */
    private final a<Data> f1680a;

    public interface a<Data> {
        Class<Data> a();

        void a(Data data) throws IOException;

        Data decode(String str) throws IllegalArgumentException;
    }

    private static final class b<Data> implements d<Data> {

        /* renamed from: a  reason: collision with root package name */
        private final String f1681a;

        /* renamed from: b  reason: collision with root package name */
        private final a<Data> f1682b;

        /* renamed from: c  reason: collision with root package name */
        private Data f1683c;

        b(String str, a<Data> aVar) {
            this.f1681a = str;
            this.f1682b = aVar;
        }

        @Override // com.bumptech.glide.load.a.d
        @NonNull
        public Class<Data> a() {
            return this.f1682b.a();
        }

        @Override // com.bumptech.glide.load.a.d
        public void a(@NonNull Priority priority, @NonNull d.a<? super Data> aVar) {
            try {
                this.f1683c = this.f1682b.decode(this.f1681a);
                aVar.a((Object) this.f1683c);
            } catch (IllegalArgumentException e2) {
                aVar.a((Exception) e2);
            }
        }

        @Override // com.bumptech.glide.load.a.d
        public void b() {
            try {
                this.f1682b.a(this.f1683c);
            } catch (IOException unused) {
            }
        }

        @Override // com.bumptech.glide.load.a.d
        @NonNull
        public DataSource c() {
            return DataSource.LOCAL;
        }

        @Override // com.bumptech.glide.load.a.d
        public void cancel() {
        }
    }

    public static final class c<Model> implements v<Model, InputStream> {

        /* renamed from: a  reason: collision with root package name */
        private final a<InputStream> f1684a = new h(this);

        @Override // com.bumptech.glide.load.b.v
        @NonNull
        public u<Model, InputStream> a(@NonNull y yVar) {
            return new g(this.f1684a);
        }
    }

    public g(a<Data> aVar) {
        this.f1680a = aVar;
    }

    @Override // com.bumptech.glide.load.b.u
    public u.a<Data> a(@NonNull Model model, int i, int i2, @NonNull f fVar) {
        return new u.a<>(new com.bumptech.glide.e.c(model), new b(model.toString(), this.f1680a));
    }

    @Override // com.bumptech.glide.load.b.u
    public boolean a(@NonNull Model model) {
        return model.toString().startsWith("data:image");
    }
}