package H4;

import java.io.BufferedReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.NoSuchElementException;
import kotlin.jvm.internal.o;

/* JADX INFO: loaded from: classes3.dex */
public final class e implements Iterator, K4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public String f2098a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f2099b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ f f2100c;

    public e(f fVar) {
        this.f2100c = fVar;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() throws IOException {
        if (this.f2098a == null && !this.f2099b) {
            String line = ((BufferedReader) this.f2100c.f2102b).readLine();
            this.f2098a = line;
            if (line == null) {
                this.f2099b = true;
            }
        }
        return this.f2098a != null;
    }

    @Override // java.util.Iterator
    public final Object next() {
        if (!hasNext()) {
            throw new NoSuchElementException();
        }
        String str = this.f2098a;
        this.f2098a = null;
        o.e(str);
        return str;
    }

    @Override // java.util.Iterator
    public final void remove() {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }
}
