package o; import java.io.IOException; import java.util.Enumeration; /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.goX, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public final class C15360goX extends AbstractC15317gnH { private byte[] b; /* JADX INFO: Access modifiers changed from: package-private */ public C15360goX(byte[] bArr) throws IOException { this.b = bArr; } private void g() { C15358goP c15358goP = new C15358goP(this.b); while (c15358goP.hasMoreElements()) { this.e.addElement(c15358goP.nextElement()); } this.b = null; } @Override // o.AbstractC15317gnH public final InterfaceC15342gnr d(int i) { InterfaceC15342gnr d; synchronized (this) { if (this.b != null) { g(); } d = super.d(i); } return d; } @Override // o.AbstractC15317gnH public final Enumeration b() { synchronized (this) { byte[] bArr = this.b; if (bArr == null) { return super.b(); } return new C15358goP(bArr); } } @Override // o.AbstractC15317gnH public final int e() { int e; synchronized (this) { if (this.b != null) { g(); } e = super.e(); } return e; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15317gnH, o.AbstractC15315gnE public final AbstractC15315gnE h() { if (this.b != null) { g(); } return super.h(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15317gnH, o.AbstractC15315gnE public final AbstractC15315gnE f() { if (this.b != null) { g(); } return super.f(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final int c() throws IOException { byte[] bArr = this.b; if (bArr != null) { return goV.d(bArr.length) + 1 + this.b.length; } return super.f().c(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15317gnH, o.AbstractC15315gnE public final void c(gnG gng) throws IOException { byte[] bArr = this.b; if (bArr == null) { super.f().c(gng); return; } gng.a(48); gng.d(bArr.length); gng.a.write(bArr); } }