package o;

import java.io.BufferedReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zL, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3086zL implements Iterator, InterfaceC2989yJ {
    public String l;
    public boolean m;
    public final /* synthetic */ C0164Gi n;

    public C3086zL(C0164Gi c0164Gi) {
        this.n = c0164Gi;
    }

    @Override // java.util.Iterator
    public final boolean hasNext() throws IOException {
        if (this.l == null && !this.m) {
            String line = ((BufferedReader) this.n.b).readLine();
            this.l = line;
            if (line == null) {
                this.m = true;
            }
        }
        return this.l != null;
    }

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

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