Files
rr3-apk/decompiled/sources/com/google/android/gms/internal/ads/zzgvq.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

55 lines
1.4 KiB
Java

package com.google.android.gms.internal.ads;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
/* loaded from: classes3.dex */
final class zzgvq extends FilterInputStream {
private int zza;
public zzgvq(InputStream inputStream, int i) {
super(inputStream);
this.zza = i;
}
@Override // java.io.FilterInputStream, java.io.InputStream
public final int available() throws IOException {
return Math.min(super.available(), this.zza);
}
@Override // java.io.FilterInputStream, java.io.InputStream
public final int read() throws IOException {
if (this.zza <= 0) {
return -1;
}
int read = super.read();
if (read >= 0) {
this.zza--;
}
return read;
}
@Override // java.io.FilterInputStream, java.io.InputStream
public final long skip(long j) throws IOException {
int skip = (int) super.skip(Math.min(j, this.zza));
if (skip >= 0) {
this.zza -= skip;
}
return skip;
}
@Override // java.io.FilterInputStream, java.io.InputStream
public final int read(byte[] bArr, int i, int i2) throws IOException {
int i3 = this.zza;
if (i3 <= 0) {
return -1;
}
int read = super.read(bArr, i, Math.min(i2, i3));
if (read >= 0) {
this.zza -= read;
}
return read;
}
}