package h5; import java.io.Closeable; import java.nio.charset.Charset; /* loaded from: classes2.dex */ public abstract class l0 implements Closeable { class a extends l0 { /* renamed from: a, reason: collision with root package name */ final /* synthetic */ e0 f10222a; /* renamed from: b, reason: collision with root package name */ final /* synthetic */ long f10223b; /* renamed from: c, reason: collision with root package name */ final /* synthetic */ f f10224c; a(e0 e0Var, long j10, f fVar) { this.f10222a = e0Var; this.f10223b = j10; this.f10224c = fVar; } @Override // h5.l0 public e0 G() { return this.f10222a; } @Override // h5.l0 public f P() { return this.f10224c; } @Override // h5.l0 public long z() { return this.f10223b; } } public static l0 I(e0 e0Var, long j10, f fVar) { if (fVar != null) { return new a(e0Var, j10, fVar); } throw new NullPointerException("source == null"); } public static l0 O(e0 e0Var, byte[] bArr) { return I(e0Var, bArr.length, new d().q(bArr)); } private Charset c() { e0 G = G(); return G != null ? G.a(i5.c.f10880j) : i5.c.f10880j; } public abstract e0 G(); public abstract f P(); public final String R() { f P = P(); try { return P.k(i5.c.f(P, c())); } finally { i5.c.j(P); } } @Override // java.io.Closeable, java.lang.AutoCloseable public void close() { i5.c.j(P()); } public abstract long z(); }